From dd03d2d256a6bf6143f2201a77ced79fbfee40b2 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 16 Mar 2016 08:50:41 +0100 Subject: [PATCH] Fixed @ => issue. --- .../app/controllers/_ui_element/ticket_perform_action.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee b/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee index 9d1322a9e..b12765ee8 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee +++ b/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee @@ -36,7 +36,7 @@ class App.UiElement.ticket_perform_action item.find('.js-attributeSelector').prepend(selector) # add filter - item.find('.js-add').bind('click', (e) -> + item.find('.js-add').bind('click', (e) => element = $(e.target).closest('.js-filterElement') elementClone = element.clone(true) element.after(elementClone)