[Pkg-mozext-commits] [wot] 152/226: Fixed: #57 After the add-on is syncronized with website, the RW still thinks there is no account

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 39af41cad0e7526d03d3cdd1f500131dc6300153
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Thu Sep 5 15:17:38 2013 +0300

    Fixed: #57 After the add-on is syncronized with website, the RW still thinks there is no account
---
 content/api.js             |  1 +
 content/rw/ratingwindow.js | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/content/api.js b/content/api.js
index 094b76d..9df540e 100644
--- a/content/api.js
+++ b/content/api.js
@@ -654,6 +654,7 @@ var wot_api_reload =
 				var name = wot_cache.get_name_from_element(cache.getNext());
 				if (name) {
 					wot_cache.set(name, "status", WOT_QUERY_RETRY);
+                    wot_cache.remove(name, "exists");   // to tell that cache doesn't exist for the target
 				}
 			}
 
diff --git a/content/rw/ratingwindow.js b/content/rw/ratingwindow.js
index f8905e6..121fc98 100644
--- a/content/rw/ratingwindow.js
+++ b/content/rw/ratingwindow.js
@@ -644,6 +644,9 @@ $.extend(wot, { ratingwindow: {
 
             } else if (_rw.comments.is_banned) {
                 // this is considered below
+            } else {
+                // normal mode
+                _rw.comments.show_normal_hint();
             }
         }
 
@@ -2024,6 +2027,13 @@ $.extend(wot, { ratingwindow: {
             $("#user-comment").focus();
         },
 
+        show_normal_hint: function () {
+            $("#comment-register").hide();
+            $("#comment-captcha").hide();
+            $("#comment-side-hint").show();
+            $("#user-comment").removeClass("warning").attr("disabled", null);
+        },
+
         show_register_invitation: function () {
             $("#comment-side-hint").hide();
             $("#user-comment").addClass("warning");

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