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)