[Pkg-mozext-commits] [wot] 99/226: TEMPORARY: Disabled commenting mode

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

    TEMPORARY: Disabled commenting mode
---
 content/rw/ratingwindow.js | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/content/rw/ratingwindow.js b/content/rw/ratingwindow.js
index 251b567..0cc59c7 100644
--- a/content/rw/ratingwindow.js
+++ b/content/rw/ratingwindow.js
@@ -579,11 +579,13 @@ $.extend(wot, { ratingwindow: {
 
         var error_code = data.error_code || 0;
 
-        _comments.allow_commenting = ([
-            wot.comments.error_codes.AUTHENTICATION_FAILED,
-            wot.comments.error_codes.COMMENT_NOT_ALLOWED,
-            wot.comments.error_codes.IS_BANNED
-        ].indexOf(error_code) < 0); // if none of these codes are found
+//        _comments.allow_commenting = ([
+//            wot.comments.error_codes.AUTHENTICATION_FAILED,
+//            wot.comments.error_codes.COMMENT_NOT_ALLOWED,
+//            wot.comments.error_codes.IS_BANNED
+//        ].indexOf(error_code) < 0); // if none of these codes are found
+        _comments.allow_commenting = false; // FIXME: remove this temporary line when commenting feature is ready
+
 
         _comments.is_banned = (error_code == wot.comments.error_codes.IS_BANNED);
 
@@ -1953,7 +1955,7 @@ $.extend(wot, { ratingwindow: {
 
     /* Start of Comments API and Comments UI code */
     comments: {
-        allow_commenting: true,
+        allow_commenting: false,    // FIXME: set true again when commenting feature will be ready
         is_banned: false,
         captcha_required: false,
         MIN_LIMIT: 30,
@@ -2026,6 +2028,8 @@ $.extend(wot, { ratingwindow: {
             }
 
             $_button.toggle(!_this.is_banned);  // don't show this button to banned users
+            $_button.hide(); // FIXME: remove this when Commenting feature is ready
+
         },
 
         set_comment: function (text) {

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