[Pkg-mozext-commits] [wot] 147/226: Synced to Chrome's code
David Prévot
taffit at moszumanska.debian.org
Fri May 1 00:35:45 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 a3c54a65af2674f0a590c9cc8cbbdbaaf3f8ccdc
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date: Wed Sep 4 13:55:11 2013 +0300
Synced to Chrome's code
---
content/rw/ratingwindow.js | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/content/rw/ratingwindow.js b/content/rw/ratingwindow.js
index 01ff723..e846e2a 100644
--- a/content/rw/ratingwindow.js
+++ b/content/rw/ratingwindow.js
@@ -376,8 +376,8 @@ $.extend(wot, { ratingwindow: {
updatecontents: function()
{
- var bg = chrome.extension.getBackgroundPage();
- var _this = wot.ratingwindow,
+ var bg = chrome.extension.getBackgroundPage(),
+ _this = wot.ratingwindow,
cached = _this.getcached(),
visible_hostname = "",
rw_title = "";
@@ -1126,11 +1126,12 @@ $.extend(wot, { ratingwindow: {
var a = item.name;
var t = (cached.value[a] && cached.value[a].t !== undefined) ? cached.value[a].t : -1;
if (_rw.state[a]) {
- _rw.state[a].name = a; // stupid hack
_rw.state[a].t = t;
+ _rw.state[a].name = a;
} else {
- _rw.state[a] = { name: a, t: t };
+ _rw.state[a] = { t: t, name: a };
}
+
_rw.rate_control.updateratings(_rw.state[a]); // restore user's testimonies visually
});
--
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