[Pkg-mozext-commits] [wot] 05/226: Reload the reputation when saving a rating on the scorecard

David Prévot taffit at moszumanska.debian.org
Fri May 1 00:35:28 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 cbec0fcb41d13377059ad0de075354308367d3cb
Author: Sami Tolvanen <sami at mywot.com>
Date:   Fri Jan 13 14:58:16 2012 +0200

    Reload the reputation when saving a rating on the scorecard
---
 content/config.js   |  4 ++--
 content/firstrun.js |  4 +++-
 content/my.js       | 34 +++++++++++++++++++++++++++++++++-
 content/prefs.js    |  2 +-
 content/util.js     |  2 +-
 5 files changed, 40 insertions(+), 6 deletions(-)

diff --git a/content/config.js b/content/config.js
index f602074..88a5a33 100644
--- a/content/config.js
+++ b/content/config.js
@@ -1,6 +1,6 @@
 /*
 	config.js
-	Copyright © 2005-2011  WOT Services Oy <info at mywot.com>
+	Copyright © 2005-2012  WOT Services Oy <info at mywot.com>
 
 	This file is part of WOT.
 
@@ -19,7 +19,7 @@
 */
 
 const WOT_PLATFORM = "firefox";
-const WOT_VERSION  = "20120106";
+const WOT_VERSION  = "20120113";
 
 /*
  * Constants
diff --git a/content/firstrun.js b/content/firstrun.js
index a94146e..73c3d55 100644
--- a/content/firstrun.js
+++ b/content/firstrun.js
@@ -1,6 +1,6 @@
 /*
 	firstrun.js
-	Copyright © 2007-2011  WOT Services Oy <info at mywot.com>
+	Copyright © 2007-2012  WOT Services Oy <info at mywot.com>
 
 	This file is part of WOT.
 
@@ -66,6 +66,8 @@ var wot_firstrun =
 			if (this.opentab(WOT_FIRSTRUN_WELCOME, wot_url.getprefurl(tab))) {
 				this.opentab(WOT_FIRSTRUN_CURRENT,
 					wot_url.getprefurl(partner, false, WOT_UPDATE_PATH));
+			} else {
+				wot_prefs.setBool("install_search", true);
 			}
 		} catch (e) {
 			dump("wot_firstrun.load: failed with " + e + "\n");
diff --git a/content/my.js b/content/my.js
index 1686950..9d10127 100644
--- a/content/my.js
+++ b/content/my.js
@@ -1,6 +1,6 @@
 /*
 	my.js
-	Copyright © 2005, 2006, 2007, 2008, 2009  WOT Services Oy <info at mywot.com>
+	Copyright © 2005-2012  WOT Services Oy <info at mywot.com>
 
 	This file is part of WOT.
 
@@ -20,6 +20,36 @@
 
 var wot_my_session =
 {
+	domcontentloaded: function(e)
+	{
+		try {
+			var content = e.originalTarget;
+
+			if (!content || !content.location || !content.location.href) {
+				return;
+			}
+
+			var host = wot_url.gethostname(content.location.href);
+
+			if (!host || !WOT_MY_TRIGGER.test(host)) {
+				return;
+			}
+			
+			var clear = content.getElementById("wotsaverating");
+
+			if (clear) {
+				clear.addEventListener("click", function() {
+					var target = clear.getAttribute("target");
+					if (target && wot_cache.iscached(target)) {
+						wot_cache.set(target, "status", WOT_QUERY_RETRY);
+					}
+				});
+			}
+		} catch (e) {
+			dump("wot_my_session.domcontentloaded: failed with " + e + "\n");
+		}
+	},
+
 	clear: function()
 	{
 		try {
@@ -195,3 +225,5 @@ var wot_my_session =
 		}
 	}
 };
+
+wot_modules.push({ name: "wot_my_session", obj: wot_my_session });
diff --git a/content/prefs.js b/content/prefs.js
index a17e1e7..fb59e10 100644
--- a/content/prefs.js
+++ b/content/prefs.js
@@ -1,6 +1,6 @@
 /*
 	prefs.js
-	Copyright © 2005, 2006, 2007, 2009  WOT Services Oy <info at mywot.com>
+	Copyright © 2005-2012  WOT Services Oy <info at mywot.com>
 
 	This file is part of WOT.
 
diff --git a/content/util.js b/content/util.js
index 2bf5126..13c220f 100644
--- a/content/util.js
+++ b/content/util.js
@@ -1,6 +1,6 @@
 /*
 	util.js
-	Copyright © 2005-2011  WOT Services Oy <info at mywot.com>
+	Copyright © 2005-2012  WOT Services Oy <info at mywot.com>
 
 	This file is part of WOT.
 

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