1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Fix away status in sidebar

This commit is contained in:
Tim Düsterhus 2013-05-28 23:46:22 +02:00
parent ecf872e862
commit a7e63a5954
2 changed files with 3 additions and 3 deletions

View File

@ -429,7 +429,7 @@ Move the user to the new position if he was found in the old list.
element.addClass 'away'
element.attr 'title', user.awayStatus
else
element.removeClass 'timsChatAway'
element.removeClass 'away'
element.removeAttr 'title'
element.data 'tooltip', ''
@ -452,7 +452,7 @@ Build HTML of the user and insert it into the list, if the users was not found i
li.addClass 'you' if user.userID is WCF.User.userID
li.addClass 'suspended' if user.suspended
if user.awayStatus?
li.addClass 'timsChatAway'
li.addClass 'away'
li.attr 'title', user.awayStatus
li.data 'username', user.username

View File

@ -123,7 +123,7 @@ public function show() {
$json['users'][] = array(
'userID' => (int) $user->userID,
'username' => $user->username,
'awayStatus' => $user->awayStatus,
'awayStatus' => $user->chatAway,
'suspended' => (boolean) !$this->room->canWrite($user->getDecoratedObject()),
'avatar' => array(
16 => $user->getAvatar()->getImageTag(16),