mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Fix away status in sidebar
This commit is contained in:
parent
ecf872e862
commit
a7e63a5954
@ -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
|
||||
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user