Bug 566872 - Search engines should appear grayed out when disabled [r=mfinkle]
authorMatt Brubeck<mbrubeck@mozilla.com>
Thu, 03 Jun 2010 15:55:37 -0400
changeset 66253 43dde3302607fd6c796f39b72b5dff00dc9c6a22
parent 66252 7d67f3e2b6d866c133697999c97f6e577abd6626
child 66254 379721949c5c1054eab782f7198bea1757ce0ce2
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs566872
Bug 566872 - Search engines should appear grayed out when disabled [r=mfinkle]
mobile/chrome/content/extensions.js
--- a/mobile/chrome/content/extensions.js
+++ b/mobile/chrome/content/extensions.js
@@ -344,16 +344,17 @@ var ExtensionsView = {
         document.getElementById("addons-update-all").disabled = true;
       }
     });
   },
 
   enable: function ev_enable(aItem) {
     let opType;
     if (aItem.getAttribute("type") == "search") {
+      aItem.setAttribute("isDisabled", false);
       aItem._engine.hidden = false;
       opType = "needs-enable";
     } else {
       aItem.addon.userDisabled = false;
       opType = this._getOpTypeForOperations(aItem.addon.pendingOperations);
 
       if (opType == "needs-enable")
         this.showRestart();
@@ -362,16 +363,17 @@ var ExtensionsView = {
     }
 
     aItem.setAttribute("opType", opType);
   },
 
   disable: function ev_disable(aItem) {
     let opType;
     if (aItem.getAttribute("type") == "search") {
+      aItem.setAttribute("isDisabled", true);
       aItem._engine.hidden = true;
       opType = "needs-disable";
     } else {
       aItem.addon.userDisabled = true;
       opType = this._getOpTypeForOperations(aItem.addon.pendingOperations);
 
       if (opType == "needs-disable")
         this.showRestart();