This commit is contained in:
calzoneman 2014-02-28 00:09:20 -06:00
parent 97f682a022
commit 3da717adb9
6 changed files with 29 additions and 16 deletions

View file

@ -358,8 +358,9 @@ li.ui-sortable-helper, li.ui-sortable-placeholder + li.queue_entry {
position: fixed;
border: 1px solid #aaaaaa;
border-radius: 5px;
max-width: 200px;
padding: 5px;
max-width: 200px;
max-height: 300px;
}
.user-dropdown {

View file

@ -112,9 +112,9 @@ function chatTabComplete() {
var __slice = Array.prototype.slice;
var users = __slice.call($("#userlist").children()).map(function (elem) {
return elem.children[1].innerHTML;
return elem.children[1].innerHTML.toLowerCase();
}).filter(function (name) {
return name.toLowerCase().indexOf(current) === 0;
return name.indexOf(current) === 0;
});
// users now contains a list of names that start with current word
@ -580,7 +580,6 @@ $("#cs-chatfilters-newsubmit").click(function () {
return;
}
console.log(name, regex, flags, replace);
socket.emit("updateFilter", {
name: name,
source: regex,