[Pkg-mozext-commits] [wot] 162/226: Fixed #48 Clearing ratings separately doesn't clear voted categories
David Prévot
taffit at moszumanska.debian.org
Fri May 1 00:35:47 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 9acca19975b395ffb6aa30f12a1b2bcc07d0f743
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date: Sun Sep 15 00:28:34 2013 +0300
Fixed #48 Clearing ratings separately doesn't clear voted categories
---
content/rw/ratingwindow.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/content/rw/ratingwindow.js b/content/rw/ratingwindow.js
index 4224deb..2ad2d94 100644
--- a/content/rw/ratingwindow.js
+++ b/content/rw/ratingwindow.js
@@ -873,6 +873,8 @@ $.extend(wot, { ratingwindow: {
// if there is a comment, it must be valid, otherwise disallow the submit
if ((testimonies > 0 && !has_comment) || has_valid_comment) { // if rated OR commented, then OK
passed = true;
+ } else if (testimonies == 0 && !has_comment) {
+ passed = true;
}
} else {
if (testimonies == 0 && has_comment == false) {
--
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