Bug 703923: Disable 'Reset' buttons in about:config on prefs with default values. r=mfinkle

This commit is contained in:
Steffen Wilberg 2011-11-24 19:37:40 +01:00
parent 14a33e25d6
commit 4253b8ebab

View File

@ -301,6 +301,7 @@
let resetButton = document.createElement("button");
resetButton.className = "reset-pref-button";
resetButton.textContent = gStringBundle.GetStringFromName("resetPref.label");
resetButton.disabled = aPref.default;
resetButton.addEventListener("click", function(event) {
this.resetPref(aPref);
}.bind(this), false);