Minor fixes for v2.2
- If NO_WEBSOCKETS or USEROPTS.altsocket are true, don't use websockets - Base resizing on an invisible div (some channels remove/hide #queue) - Names are properly italicized when AFK
This commit is contained in:
parent
20f0d1c316
commit
15085fc6ae
6 changed files with 11 additions and 9 deletions
|
|
@ -672,7 +672,7 @@ Callbacks = {
|
|||
if(data.afk) {
|
||||
$("<i/>").addClass("icon-time")
|
||||
.appendTo(users[i].children[0]);
|
||||
$(users[i].children[1]).css("font-style", "");
|
||||
$(users[i].children[1]).css("font-style", "italic");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1111,7 +1111,7 @@ setupCallbacks = function() {
|
|||
|
||||
$.getScript(IO_URL+"/socket.io/socket.io.js", function() {
|
||||
try {
|
||||
if(NO_WEBSOCKETS) {
|
||||
if(NO_WEBSOCKETS || USEROPTS.altsocket) {
|
||||
var i = io.transports.indexOf("websocket");
|
||||
if(i >= 0)
|
||||
io.transports.splice(i, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue