Fix chat commands, fix a few bugs
This commit is contained in:
parent
637ece4044
commit
0a087c6507
8 changed files with 63 additions and 35 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
BIN
www/img/glyphicons-halflings-white.png
Normal file
BIN
www/img/glyphicons-halflings-white.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.6 KiB |
BIN
www/img/glyphicons-halflings.png
Normal file
BIN
www/img/glyphicons-halflings.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
BIN
www/img/stripe-diagonal.png
Normal file
BIN
www/img/stripe-diagonal.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 206 B |
Loading…
Add table
Add a link
Reference in a new issue