Fix #online_count

Rather dirty, but works.
This commit is contained in:
Marcel Klehr 2014-04-30 22:32:08 +02:00
parent 706ee1f866
commit 46ef83d710
1 changed files with 12 additions and 6 deletions

View File

@ -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;
}, },