Hide unused settings when unused
This commit is contained in:
parent
99a2c8c5d8
commit
8c8b8ead08
@ -246,7 +246,7 @@
|
||||
<div class="checkboxContainer checkboxContainer-withDescription">
|
||||
<label class="emby-checkbox-label">
|
||||
<input id="PersistSkipButton" type="checkbox" is="emby-checkbox" />
|
||||
<span>Display skip through entire intro</span>
|
||||
<span>Display button for intro duration</span>
|
||||
</label>
|
||||
|
||||
<div class="fieldDescription">
|
||||
@ -503,6 +503,23 @@
|
||||
|
||||
var windowHashInterval = 0;
|
||||
|
||||
var persistSkip = document.querySelector("input#PersistSkipButton");
|
||||
var showAdjustment = document.querySelector("input#ShowPromptAdjustment");
|
||||
var hideAdjustment = document.querySelector("input#HidePromptAdjustment");
|
||||
|
||||
// prevent setting unavailable options
|
||||
async function persistSkipChanged() {
|
||||
if (persistSkip.checked) {
|
||||
showAdjustment.style.display = 'none';
|
||||
hideAdjustment.style.display = 'none';
|
||||
} else {
|
||||
showAdjustment.style.display = 'block';
|
||||
hideAdjustment.style.display = 'block';
|
||||
}
|
||||
}
|
||||
|
||||
persistSkip.addEventListener("change", persistSkipChanged);
|
||||
|
||||
// when the fingerprint visualizer opens, populate show names
|
||||
async function visualizerToggled() {
|
||||
if (!visualizer.open) {
|
||||
@ -781,6 +798,8 @@
|
||||
document.querySelector("#" + field).checked = config[field];
|
||||
}
|
||||
|
||||
persistSkipChanged();
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user