Merge pull request #2138 from ether/fix-user-icon-color-and-count
Fix showusers button: Show authorcolor and user_count again
This commit is contained in:
commit
e85d09400e
|
@ -602,7 +602,13 @@ var paduserlist = (function()
|
||||||
online++;
|
online++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$("#online_count").text(online);
|
var $btn = $("#editbar [data-key=showusers] > a")
|
||||||
|
, $counter = $('#online_count', $btn)
|
||||||
|
if(!$counter.length) {
|
||||||
|
$counter = $('<span id="online_count">')
|
||||||
|
$btn.append($counter)
|
||||||
|
}
|
||||||
|
$counter.text(online);
|
||||||
|
|
||||||
return online;
|
return online;
|
||||||
},
|
},
|
||||||
|
@ -728,11 +734,11 @@ var paduserlist = (function()
|
||||||
$("#myswatch").css({'background-color': myUserInfo.colorId});
|
$("#myswatch").css({'background-color': myUserInfo.colorId});
|
||||||
|
|
||||||
if ($.browser.msie && parseInt($.browser.version) <= 8) {
|
if ($.browser.msie && parseInt($.browser.version) <= 8) {
|
||||||
$("#usericon a").css({'box-shadow': 'inset 0 0 30px ' + myUserInfo.colorId,'background-color': myUserInfo.colorId});
|
$("li[data-key=showusers] > a").css({'box-shadow': 'inset 0 0 30px ' + myUserInfo.colorId,'background-color': myUserInfo.colorId});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$("#usericon a").css({'box-shadow': 'inset 0 0 30px ' + myUserInfo.colorId});
|
$("li[data-key=showusers] > a").css({'box-shadow': 'inset 0 0 30px ' + myUserInfo.colorId});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue