[Pkg-mozext-commits] [wot] 38/226: fixed #14 WOT reputation icon in the warning message doesn't reflect site's reputation

David Prévot taffit at moszumanska.debian.org
Fri May 1 00:35:32 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 98c836b3a4dc131747ed302a123b8fcf4ce1e3bf
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Fri Sep 7 15:28:34 2012 +0300

    fixed #14 WOT reputation icon in the warning message doesn't reflect site's reputation
---
 content/util.js    | 4 ++--
 content/warning.js | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/content/util.js b/content/util.js
index c9df854..2869176 100644
--- a/content/util.js
+++ b/content/util.js
@@ -299,7 +299,7 @@ var wot_browser =
 		return null;
 	},
 
-	show_warning: function(hostname, message, unknown)
+	show_warning: function(hostname, message, known)
 	{
 		try {
 			var icon = "chrome://wot/skin/fusion/";
@@ -308,7 +308,7 @@ var wot_browser =
 				icon += "accessible/";
 			}
 
-			if (unknown) {
+			if (known) {
 				icon += "16_16/plain/danger.png";
 			} else {
 				icon += "16_16/plain/no_rep_available.png";
diff --git a/content/warning.js b/content/warning.js
index d83a2a5..f863afc 100644
--- a/content/warning.js
+++ b/content/warning.js
@@ -423,7 +423,7 @@ var wot_warning =
 			/* Show the notification bar always */
 			if (reason != WOT_REASON_UNKNOWN) {
 				window.setTimeout(wot_browser.show_warning,
-					WOT_DELAY_WARNING, hostname, notification);
+					WOT_DELAY_WARNING, hostname, notification, true);
 			}
 
 			if (type != WOT_WARNING_DOM || this.warned[hostname]) {

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