From 9e31bffd164c57fb04a20c4e33455a3b4c0a0fdd Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 28 Jan 2016 14:30:06 +0100 Subject: [PATCH] Only show popovers on arrows. --- app/assets/javascripts/app/controllers/chat.coffee | 6 +++--- .../javascripts/app/views/customer_chat/index.jst.eco | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/app/controllers/chat.coffee b/app/assets/javascripts/app/controllers/chat.coffee index 299a3b641..e34082d5a 100644 --- a/app/assets/javascripts/app/controllers/chat.coffee +++ b/app/assets/javascripts/app/controllers/chat.coffee @@ -111,7 +111,7 @@ class App.CustomerChat extends App.Controller chat_sessions: list ) - @el.find('.js-waitingCustomers').popover( + @el.find('.js-waitingCustomers .js-arrow').popover( trigger: 'hover' html: true animation: false @@ -123,7 +123,7 @@ class App.CustomerChat extends App.Controller chatSessionList(@meta.waiting_chat_session_list) ) - @el.find('.js-chattingCustomers').popover( + @el.find('.js-chattingCustomers .js-arrow').popover( trigger: 'hover' html: true animation: false @@ -135,7 +135,7 @@ class App.CustomerChat extends App.Controller chatSessionList(@meta.running_chat_session_list) ) - @el.find('.js-activeAgents').popover( + @el.find('.js-activeAgents .js-arrow').popover( trigger: 'hover' html: true animation: false diff --git a/app/assets/javascripts/app/views/customer_chat/index.jst.eco b/app/assets/javascripts/app/views/customer_chat/index.jst.eco index 9df64237a..d734cc69e 100644 --- a/app/assets/javascripts/app/views/customer_chat/index.jst.eco +++ b/app/assets/javascripts/app/views/customer_chat/index.jst.eco @@ -6,13 +6,13 @@
- <%- @T('Waiting Customers') %>
<%- @Icon('arrow-down') %>
+ <%- @T('Waiting Customers') %>
<%- @Icon('arrow-down') %>
- <%- @T('Chatting Customers') %>
<%- @Icon('arrow-down') %>
+ <%- @T('Chatting Customers') %>
<%- @Icon('arrow-down') %>
- <%- @T('Active Agents') %>
<%- @Icon('arrow-down') %>
+ <%- @T('Active Agents') %>
<%- @Icon('arrow-down') %>