Fix for duplicate tabs displaying for the same channel due to case-mismatch
authorJack Allnutt <m2ys4u@Gmail.com>
Tue, 31 Jul 2012 23:23:14 +0000 (00:23 +0100)
committerJack Allnutt <m2ys4u@Gmail.com>
Tue, 31 Jul 2012 23:23:14 +0000 (00:23 +0100)
client_backbone/js/model.js

index fdf19735313cf69bf0d87a6afd6a8c2cd6e9953e..307a941d9f5b51a2c518a49c6284648ac84567e2 100755 (executable)
@@ -56,7 +56,7 @@ kiwi.model.MemberList = Backbone.Collection.extend({
     },\r
     getByNick: function (nick) {\r
         return this.find(function (m) {\r
-            return nick === m.get("nick");\r
+            return nick.toLowerCase() === m.get("nick").toLowerCase();\r
         });\r
     }\r
 });\r
@@ -159,7 +159,7 @@ kiwi.model.PanelList = Backbone.Collection.extend({
     },\r
     getByName: function (name) {\r
         return this.find(function (c) {\r
-            return name === c.get("name");\r
+            return name.toLowerCase() === c.get("name").toLowerCase();\r
         });\r
     }\r
 });\r