3
browser/components/preferences/advanced.js | 8 +++-----
4
1 file changed, 3 insertions(+), 5 deletions(-)
6
Index: mozilla/browser/components/preferences/advanced.js
7
===================================================================
8
--- mozilla.orig/browser/components/preferences/advanced.js
9
+++ mozilla/browser/components/preferences/advanced.js
13
Components.classes["@mozilla.org/updates/update-service;1"].
14
getService(Components.interfaces.nsIApplicationUpdateService);
16
var enabledPref = document.getElementById("app.update.enabled");
17
var enableAppUpdate = document.getElementById("enableAppUpdate");
19
- enableAppUpdate.disabled = !aus.canUpdate || enabledPref.locked;
20
+ enableAppUpdate.disabled = true;
24
* Enables/disables UI for "when updates are found" based on the values,
25
* and "locked" states of associated preferences.
27
updateAutoItems: function ()
29
var enabledPref = document.getElementById("app.update.enabled");
30
var autoPref = document.getElementById("app.update.auto");
32
var updateModeLabel = document.getElementById("updateModeLabel");
33
var updateMode = document.getElementById("updateMode");
35
- var disable = enabledPref.locked || !enabledPref.value ||
38
updateModeLabel.disabled = updateMode.disabled = disable;
42
* Enables/disables the "warn if incompatible extensions/themes exist" UI
43
* based on the values and "locked" states of various preferences.
45
updateModeItems: function ()
47
var enabledPref = document.getElementById("app.update.enabled");
48
var autoPref = document.getElementById("app.update.auto");
49
var modePref = document.getElementById("app.update.mode");
51
var warnIncompatible = document.getElementById("warnIncompatible");
53
- var disable = enabledPref.locked || !enabledPref.value || autoPref.locked ||
54
- !autoPref.value || modePref.locked;
56
warnIncompatible.disabled = disable;
60
* Stores the value of the app.update.mode preference, which is a tristate
61
* integer preference. We store the value here so that we can properly
62
* restore the preference value if the UI reflecting the preference value
63
* is in a state which can represent either of two integer values (as