CC-4802: Preferences -> Soundcloud settings: Sub-options can be checked before major one
-fixed
This commit is contained in:
parent
a129b0b081
commit
c11edea253
1 changed files with 17 additions and 0 deletions
|
@ -80,6 +80,22 @@ function setMsAuthenticationFieldsReadonly(ele) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setSoundCloudCheckBoxListener() {
|
||||||
|
var subCheckBox= $("#UseSoundCloud,#SoundCloudDownloadbleOption");
|
||||||
|
var mainCheckBox= $("#UploadToSoundcloudOption");
|
||||||
|
subCheckBox.change(function(e){
|
||||||
|
if (subCheckBox.is(':checked')) {
|
||||||
|
mainCheckBox.attr("checked", true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
mainCheckBox.change(function(e){
|
||||||
|
if (!mainCheckBox.is(':checked')) {
|
||||||
|
$("#UseSoundCloud,#SoundCloudDownloadbleOption").attr("checked", false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$('.collapsible-header').live('click',function() {
|
$('.collapsible-header').live('click',function() {
|
||||||
|
@ -102,6 +118,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
showErrorSections();
|
showErrorSections();
|
||||||
|
|
||||||
|
setSoundCloudCheckBoxListener();
|
||||||
setMailServerInputReadonly();
|
setMailServerInputReadonly();
|
||||||
setSystemFromEmailReadonly();
|
setSystemFromEmailReadonly();
|
||||||
setConfigureMailServerListener();
|
setConfigureMailServerListener();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue