[Pkg-privacy-commits] [xul-ext-monkeysphere] 207/296: hide clearSite menu option for states where it doesn't make sense to display it

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository xul-ext-monkeysphere.

commit 3d8bc6e9f77192eae3d1513e53d251aeff100936
Author: Jameson Rollins <jrollins at finestructure.net>
Date:   Sun Apr 25 16:51:25 2010 -0400

    hide clearSite menu option for states where it doesn't make sense to display it
---
 chrome/content/monkeysphere.js  | 6 ++++++
 chrome/content/monkeysphere.xul | 6 ++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index 3269aa2..6e748a8 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -159,6 +159,8 @@ var monkeysphere = (function() {
       case 'INPROGRESS':
         icon.setAttribute("src", "chrome://monkeysphere/content/progress.gif");
         panel.hidden = false;
+        // hide the clearSite menu option
+        document.getElementById("monkeysphere-status-clearSite").hidden = true;
         break;
       case 'VALID':
         icon.setAttribute("src", "chrome://monkeysphere/content/good.png");
@@ -167,6 +169,8 @@ var monkeysphere = (function() {
       case 'NOTVALID':
         icon.setAttribute("src", "chrome://monkeysphere/content/bad.png");
         panel.hidden = false;
+        // hide the clearSite menu option
+        document.getElementById("monkeysphere-status-clearSite").hidden = true;
         break;
       case 'NEUTRAL':
         icon.setAttribute("src", "");
@@ -175,6 +179,8 @@ var monkeysphere = (function() {
       case 'ERROR':
         icon.setAttribute("src", "chrome://monkeysphere/content/error.png");
         panel.hidden = false;
+        // hide the clearSite menu option
+        document.getElementById("monkeysphere-status-clearSite").hidden = true;
         break;
     }
 
diff --git a/chrome/content/monkeysphere.xul b/chrome/content/monkeysphere.xul
index 5b41bee..aaca9bf 100644
--- a/chrome/content/monkeysphere.xul
+++ b/chrome/content/monkeysphere.xul
@@ -51,9 +51,11 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
     <popupset>
       <popup id="monkeysphere-contextmenu" position="after_start">
         <!-- FIXME: need locales stuff for these labels -->
-        <menuitem label="Clear site Monkeysphere exception"
+        <menuitem id="monkeysphere-status-clearSite"
+                  label="Clear site Monkeysphere exception"
 		  oncommand="monkeysphere.contextMenuFunctions.clearSite()" />
-	<menuitem label="Help"
+	<menuitem id="monkeysphere-status-help"
+                  label="Help"
 		  oncommand="monkeysphere.contextMenuFunctions.help()" />
       </popup>
     </popupset>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/xul-ext-monkeysphere.git



More information about the Pkg-privacy-commits mailing list