From 960b6dab7314a3ff851cffffd0e58cdea89accd5 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 6 Mar 2013 19:10:20 +0100 Subject: [PATCH] Improved close modal. --- .../app/controllers/agent_ticket_history.js.coffee | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/app/controllers/agent_ticket_history.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_history.js.coffee index 95b2a59a1..7e02bba14 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_history.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_history.js.coffee @@ -1,7 +1,8 @@ class App.TicketHistory extends App.ControllerModal events: 'click [data-type=sortorder]': 'sortorder', - 'click .close': 'close', + 'click .cancel': 'modalHide', + 'click .close': 'modalHide', constructor: -> super @@ -78,8 +79,3 @@ class App.TicketHistory extends App.ControllerModal # show frontend times @delay( @frontendTimeUpdate, 200 ) - - close: -> - # close modal - @modalHide() -