[Pkg-mozext-commits] [greasemonkey] 12/16: Keep the AOM list item enabled status up to date.

David Prévot taffit at moszumanska.debian.org
Thu Jan 30 13:42:28 UTC 2014


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

taffit pushed a commit to branch master
in repository greasemonkey.

commit 0a1a3b038de62b6d22d04badd8069d35c2937962
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Wed Jan 29 13:09:45 2014 -0500

    Keep the AOM list item enabled status up to date.
    
    Fixes #1811
---
 content/addons4-overlay.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/addons4-overlay.js b/content/addons4-overlay.js
index 6d249b4..196b3cf 100644
--- a/content/addons4-overlay.js
+++ b/content/addons4-overlay.js
@@ -64,9 +64,9 @@ var observer = {
         setEmptyWarningVisible();
         break;
       case 'edit-enabled':
-        addon.userDisabled = !data;
         var item = gListView.getListItemForID(addon.id);
-        item.setAttribute('active', data);
+        item.userDisabled = !data;
+        data && item.onEnabled() || item.onDisabled();
         break;
       case 'modified':
         if (!data) break;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git



More information about the Pkg-mozext-commits mailing list