customer chat: fix conflict

This commit is contained in:
Felix Niklas 2016-03-22 16:13:51 +01:00
parent f0ebc5ac54
commit b318777201

View file

@ -6,7 +6,7 @@ class App.CustomerChat extends App.Controller
'click .js-settings': 'settings'
elements:
'.js-acceptChat': 'acceptChat'
'.js-acceptChat': 'acceptChatElement'
'.js-badgeWaitingCustomers': 'badgeWaitingCustomers'
'.js-badgeChattingCustomers': 'badgeChattingCustomers'
'.js-badgeActiveAgents': 'badgeActiveAgents'
@ -244,10 +244,10 @@ class App.CustomerChat extends App.Controller
updateMeta: =>
if @meta.waiting_chat_count && @maxChatWindows > @windowCount()
@acceptChat.addClass('is-clickable is-blinking')
@acceptChatElement.addClass('is-clickable is-blinking')
@idleTimeoutStart()
else
@acceptChat.removeClass('is-clickable is-blinking')
@acceptChatElement.removeClass('is-clickable is-blinking')
@idleTimeoutStop()
@badgeWaitingCustomers.text(@meta.waiting_chat_count)