[Pkg-mozext-commits] [wot] 134/226: Changed the location of "accessible" piece of code to update RW in the same browser session

David Prévot taffit at moszumanska.debian.org
Fri May 1 00:35:44 UTC 2015


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

taffit pushed a commit to branch master
in repository wot.

commit ada3a6f6bc4f86b268b1b00f1986275344e818dc
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Mon Sep 2 13:44:05 2013 +0300

    Changed the location of "accessible" piece of code to update RW in the same browser session
---
 content/rw/ratingwindow.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/content/rw/ratingwindow.js b/content/rw/ratingwindow.js
index 8db2065..739887b 100644
--- a/content/rw/ratingwindow.js
+++ b/content/rw/ratingwindow.js
@@ -544,6 +544,9 @@ $.extend(wot, { ratingwindow: {
             var _rw = wot.ratingwindow;
             var bg = chrome.extension.getBackgroundPage();
 
+            /* accessibility. Moved to update() because onload() is called only once */
+            $("#wot-ratingwindow").toggleClass("accessible", bg.wot.prefs.get("accessible"));
+
             data = JSON.parse(data);    // for safety
 
             _rw.updatestate(data.target, data.cached);
@@ -915,9 +918,6 @@ $.extend(wot, { ratingwindow: {
 
         wot.init_categories(_rw.prefs);
 
-        /* accessibility */
-        $("#wot-ratingwindow").toggleClass("accessible", bg.wot.prefs.get("accessible"));
-
         _rw.localize();
 
         /* user interface event handlers */

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



More information about the Pkg-mozext-commits mailing list