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.addClass 'away'
|
||||||
element.attr 'title', user.awayStatus
|
element.attr 'title', user.awayStatus
|
||||||
else
|
else
|
||||||
element.removeClass 'timsChatAway'
|
element.removeClass 'away'
|
||||||
element.removeAttr 'title'
|
element.removeAttr 'title'
|
||||||
element.data 'tooltip', ''
|
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 'you' if user.userID is WCF.User.userID
|
||||||
li.addClass 'suspended' if user.suspended
|
li.addClass 'suspended' if user.suspended
|
||||||
if user.awayStatus?
|
if user.awayStatus?
|
||||||
li.addClass 'timsChatAway'
|
li.addClass 'away'
|
||||||
li.attr 'title', user.awayStatus
|
li.attr 'title', user.awayStatus
|
||||||
li.data 'username', user.username
|
li.data 'username', user.username
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ public function show() {
|
|||||||
$json['users'][] = array(
|
$json['users'][] = array(
|
||||||
'userID' => (int) $user->userID,
|
'userID' => (int) $user->userID,
|
||||||
'username' => $user->username,
|
'username' => $user->username,
|
||||||
'awayStatus' => $user->awayStatus,
|
'awayStatus' => $user->chatAway,
|
||||||
'suspended' => (boolean) !$this->room->canWrite($user->getDecoratedObject()),
|
'suspended' => (boolean) !$this->room->canWrite($user->getDecoratedObject()),
|
||||||
'avatar' => array(
|
'avatar' => array(
|
||||||
16 => $user->getAvatar()->getImageTag(16),
|
16 => $user->getAvatar()->getImageTag(16),
|
||||||
|
Loading…
Reference in New Issue
Block a user