[Pkg-mozext-commits] [wot] 102/226: Fixed #43 No rating handler in the packed add-on

David Prévot taffit at moszumanska.debian.org
Fri May 1 00:35:40 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 ba349641b4a05964373dca1d6fcc799bd47599d3
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Tue Aug 6 22:15:32 2013 +0300

    Fixed #43 No rating handler in the packed add-on
---
 content/rw/ratingwindow.js                      |   4 +++-
 skin/b/{slider handle.png => slider_handle.png} | Bin
 skin/ratingwindow.css                           |   2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/content/rw/ratingwindow.js b/content/rw/ratingwindow.js
index 0cc59c7..d8cab3a 100644
--- a/content/rw/ratingwindow.js
+++ b/content/rw/ratingwindow.js
@@ -423,7 +423,9 @@ $.extend(wot, { ratingwindow: {
             $_rep_legend.attr("r", rep_level);
             $_rep_legend.text(wot.get_level_label(item.name, rep_level, false));
 
-            _this.rate_control.updateratings({ name: item.name, t: cachedv.t }); // update visual ratingbars
+            var t = (cachedv && cachedv.t >= 0) ? cachedv.t : -1;
+
+            _this.rate_control.updateratings({ name: item.name, t: t }); // update visual ratingbars
         });
 
         /* message */
diff --git a/skin/b/slider handle.png b/skin/b/slider_handle.png
similarity index 100%
rename from skin/b/slider handle.png
rename to skin/b/slider_handle.png
diff --git a/skin/ratingwindow.css b/skin/ratingwindow.css
index 52375ea..327b6c2 100644
--- a/skin/ratingwindow.css
+++ b/skin/ratingwindow.css
@@ -751,7 +751,7 @@ body {
 	width: 21px;
     float: left;
     position: relative;
-    background: url("chrome://wot/skin/b/slider%20handle.png") top left no-repeat;
+    background: url("chrome://wot/skin/b/slider_handle.png") top left no-repeat;
     background-size: 21px auto;
     z-index: 5;
     left: 166px;

-- 
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