Fix chat commands, fix a few bugs

This commit is contained in:
calzoneman 2014-01-12 17:06:25 -06:00
parent 637ece4044
commit 0a087c6507
8 changed files with 63 additions and 35 deletions

View file

@ -448,6 +448,24 @@ Callbacks = {
formatCSBanlist();
},
banlistRemove: function (data) {
var entries = $("#cs-banlist table").data("entries") || [];
var found = false;
for (var i = 0; i < entries.length; i++) {
if (entries[i].id === data.id) {
found = i;
break;
}
}
if (found !== false) {
entries.splice(i, 1);
$("#cs-banlist table").data("entries", entries);
}
formatCSBanlist();
},
recentLogins: function(entries) {
var tbl = $("#loginhistory table");
// I originally added this check because of a race condition

View file

@ -124,8 +124,13 @@
margin-top: 5px;
}
#drinkbar {
margin-left: 0;
.drink {
margin: 10px 10px;
padding: 10px 0px;
border: 2px solid #0000cc;
}
#drinkcount {
background-color: #000000;
color: #ffffff;
text-align: center;
@ -250,7 +255,7 @@
}
.queue_temp {
background-image: url(../img/stripe-diagonal.png);
background-image: url(/img/stripe-diagonal.png);
}
.queue_active {

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
www/img/stripe-diagonal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B