CC-4802: Preferences -> Soundcloud settings: Sub-options can be checked before major one

-fixed
This commit is contained in:
Martin Konecny 2013-01-11 13:13:36 -05:00
parent a129b0b081
commit c11edea253

View file

@ -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() {
$('.collapsible-header').live('click',function() {
@ -102,6 +118,7 @@ $(document).ready(function() {
showErrorSections();
setSoundCloudCheckBoxListener();
setMailServerInputReadonly();
setSystemFromEmailReadonly();
setConfigureMailServerListener();