Added some basic javascript based checking to require album override to be enabled for auto smartblock to be enabled
This commit is contained in:
parent
3515a898a7
commit
9dae48702f
|
@ -29,6 +29,19 @@ function setEnableSystemEmailsListener() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setPodcastAutoSmartblockReadonly() {
|
||||||
|
var disablePodcastAutomSmartblock = $("#podcastAutoSmartblock-0");
|
||||||
|
var enablePodcastAutomSmartblock = $("#podcastAutoSmartblock-1");
|
||||||
|
var podcastOverride = $("#podcastAlbumOverride-1");
|
||||||
|
if ($(podcastOverride).is(':checked')) {
|
||||||
|
enablePodcastAutomSmartblock.removeAttr("readonly");
|
||||||
|
} else {
|
||||||
|
disablePodcastAutomSmartblock.prop("checked", true);
|
||||||
|
disablePodcastAutomSmartblock.attr("readonly","readonly");
|
||||||
|
enablePodcastAutomSmartblock.attr("readonly","readonly");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function setSystemFromEmailReadonly() {
|
function setSystemFromEmailReadonly() {
|
||||||
var enableSystemEmails = $("#enableSystemEmail");
|
var enableSystemEmails = $("#enableSystemEmail");
|
||||||
var systemFromEmail = $("#systemEmail");
|
var systemFromEmail = $("#systemEmail");
|
||||||
|
@ -189,6 +202,7 @@ $(document).ready(function() {
|
||||||
showErrorSections();
|
showErrorSections();
|
||||||
|
|
||||||
setMailServerInputReadonly();
|
setMailServerInputReadonly();
|
||||||
|
setPodcastAutoSmartblockReadonly();
|
||||||
setSystemFromEmailReadonly();
|
setSystemFromEmailReadonly();
|
||||||
setConfigureMailServerListener();
|
setConfigureMailServerListener();
|
||||||
setEnableSystemEmailsListener();
|
setEnableSystemEmailsListener();
|
||||||
|
|
Loading…
Reference in New Issue