[Pkg-mozext-commits] [wot] 203/226: Fixed issue with mytags update

David Prévot taffit at moszumanska.debian.org
Fri May 1 00:35:52 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 c05f2171358fe9f54e236333d950a5c2b21f95b8
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Thu Mar 13 13:28:18 2014 +0200

    Fixed issue with mytags update
---
 content/wg.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/content/wg.js b/content/wg.js
index afc18ec..cf75378 100644
--- a/content/wg.js
+++ b/content/wg.js
@@ -115,10 +115,11 @@ var wot_wg = {
 		if (mytags instanceof Array && mytags.length) {
 
 			var _this = this,
-				mytags_flat = _this.get_mytags().map(function (item) { return item.value });
+				current_mytags = _this.get_mytags(),
+				mytags_flat = current_mytags.map(function (item) { return item.value.toLocaleLowerCase() });
 
 			var uniq = mytags.filter(function (tag) {
-				var tag_value = tag.value.trim();
+				var tag_value = tag.value.trim().toLocaleLowerCase();
 				return mytags_flat.indexOf(tag_value) < 0;
 			});
 
@@ -127,7 +128,7 @@ var wot_wg = {
 				return tag;
 			});
 
-			this.set_mytags(_this.mytags.concat(uniq_tags));
+			this.set_mytags(current_mytags.concat(uniq_tags));
 		}
 	},
 

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