Bug 599412 - Disable the update button when it is hidden in the deck. r=dtownsend, a=blocking2.0-beta7
authorRobert Strong <robert.bugzilla@gmail.com>
Fri, 24 Sep 2010 10:57:21 -0700
changeset 54635 8cde825e06bba5ed12b669c728e3594cf64b6892
parent 54634 3c934d803bd7b6a920c7d66c01898897f039ca7d
child 54636 0a5670fcfbff909ec1f9d0054edb0d963eb24703
push id15965
push userrstrong@mozilla.com
push dateFri, 24 Sep 2010 17:58:28 +0000
treeherdermozilla-central@8cde825e06bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdtownsend, blocking2.0-beta7
bugs599412
milestone2.0b7pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 599412 - Disable the update button when it is hidden in the deck. r=dtownsend, a=blocking2.0-beta7
browser/base/content/aboutDialog.js
--- a/browser/base/content/aboutDialog.js
+++ b/browser/base/content/aboutDialog.js
@@ -208,16 +208,17 @@ appUpdater.prototype =
   /**
    * Sets the deck's selected panel.
    *
    * @param  aChildID
    *         The id of the deck's child to select.
    */
   selectPanel: function(aChildID) {
     this.updateDeck.selectedPanel = document.getElementById(aChildID);
+    this.updateBtn.disabled = (aChildID != "updateButtonBox");
   },
 
   /**
    * Sets the update button's label and accesskey.
    *
    * @param  aKeyPrefix
    *         The prefix for the properties file entry to use for setting the
    *         label and accesskey.