From b076ec87602ac4ee8adbd64f19d01a042dbddb16 Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Wed, 1 Aug 2012 00:23:14 +0100 Subject: [PATCH] Fix for duplicate tabs displaying for the same channel due to case-mismatch --- client_backbone/js/model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client_backbone/js/model.js b/client_backbone/js/model.js index fdf1973..307a941 100755 --- a/client_backbone/js/model.js +++ b/client_backbone/js/model.js @@ -56,7 +56,7 @@ kiwi.model.MemberList = Backbone.Collection.extend({ }, getByNick: function (nick) { return this.find(function (m) { - return nick === m.get("nick"); + return nick.toLowerCase() === m.get("nick").toLowerCase(); }); } }); @@ -159,7 +159,7 @@ kiwi.model.PanelList = Backbone.Collection.extend({ }, getByName: function (name) { return this.find(function (c) { - return name === c.get("name"); + return name.toLowerCase() === c.get("name").toLowerCase(); }); } }); -- 2.25.1