[Pkg-mozext-commits] [wot] 138/226: Fixed a bug in Warning screen based on blacklisting info

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 874af2dbfa4b0115a826d711ba57c579f2bbf6c5
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Mon Sep 2 15:07:37 2013 +0300

    Fixed a bug in Warning screen based on blacklisting info
---
 content/warning.js | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/content/warning.js b/content/warning.js
index 960daf2..131a1a5 100644
--- a/content/warning.js
+++ b/content/warning.js
@@ -137,7 +137,7 @@ var wot_warning =
 
                 "</div>"+
                 "<div class='wot-openscorecard-wrap'>" +
-                    "<span id='wotinfobutton' class='wot-openscorecard wot-link'>{INFO}</span>" +
+                    "<span class='wot-openscorecard'>{INFO}</span>" +
                 "</div>" +
                 "<div id='wot-warn-ratings'></div>" +
                 "<div class='wot-rateit-wrap'>" +
@@ -416,9 +416,15 @@ var wot_warning =
             var rate_site = wot_util.getstring("warnings_ratesite").replace("<a>", "<a id='wotrate-link' class='wot-link'>"),
                 wt_text = wot_util.getstring("wt_warning_text") || "";
 
+            var info_link = is_blacklisted ? wot_util.getstring("bl_information") : wot_util.getstring("warnings_information");
+            if (info_link.indexOf("<a>") < 0) {
+                info_link = "<a>" + info_link + "</a>";
+            }
+            info_link = info_link.replace("<a>", "<a id='wotinfobutton' class='wot-link'>");
+
 			var replaces = [
                 /* Static strings */
-                [ "INFO", is_blacklisted ? wot_util.getstring("bl_information") : wot_util.getstring("warnings_information")  ],
+                [ "INFO", info_link  ],
                 [ "BL_OR_REP", is_blacklisted ? "blacklist": "reputation" ],
                 [ "RATINGDESC0", wot_util.getstring("components_0") ],
                 [ "RATINGDESC4", wot_util.getstring("components_4") ],

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