projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40ce1c0
)
Fix for duplicate tabs displaying for the same channel due to case-mismatch
author
Jack Allnutt
<m2ys4u@Gmail.com>
Tue, 31 Jul 2012 23:23:14 +0000
(
00:23
+0100)
committer
Jack Allnutt
<m2ys4u@Gmail.com>
Tue, 31 Jul 2012 23:23:14 +0000
(
00:23
+0100)
client_backbone/js/model.js
patch
|
blob
|
blame
|
history
diff --git
a/client_backbone/js/model.js
b/client_backbone/js/model.js
index fdf19735313cf69bf0d87a6afd6a8c2cd6e9953e..307a941d9f5b51a2c518a49c6284648ac84567e2 100755
(executable)
--- a/
client_backbone/js/model.js
+++ b/
client_backbone/js/model.js
@@
-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