rem: var preference = document.getElementById("app.update.autoUpdateEnabled"); var ids = ["enableAutoInstall", "autoInstallMode", "updateAnd"]; if (!preference.value) for (var i = 0; i < ids.length; ++i) document.getElementById(ids[i]).disabled = true; else { document.getElementById("enableAutoInstall").disabled = false; this.updateAutoInstallUI(); } 
add: var preference = document.getElementById("app.update.enabled"); document.getElementById("enableAutoInstall").disabled = !preference.value; this.updateAutoInstallUI(); 
context:   updateAppUpdateUI: function ()  {    var preference = document.getElementById("app.update.autoUpdateEnabled");    var ids = ["enableAutoInstall", "autoInstallMode", "updateAnd"];    if (!preference.value)      for (var i = 0; i < ids.length; ++i)        document.getElementById(ids[i]).disabled = true;    else     {      document.getElementById("enableAutoInstall").disabled = false;      this.updateAutoInstallUI();    }    return undefined;  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0aab53afe0a795c58e20f271245ad56118433efc/advanced.js/buggy/mail/components/preferences/advanced.js