From a8706c02eef1986ec9e7c5ac5e0057374d203687 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 28 Sep 2015 13:46:10 +0200 Subject: [PATCH] Fixed removing tags. --- app/assets/javascripts/app/controllers/widget/tag.js.coffee | 2 +- app/assets/javascripts/app/views/widget/tag.jst.eco | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/widget/tag.js.coffee b/app/assets/javascripts/app/controllers/widget/tag.js.coffee index f77f73889..3ffa46f5d 100644 --- a/app/assets/javascripts/app/controllers/widget/tag.js.coffee +++ b/app/assets/javascripts/app/controllers/widget/tag.js.coffee @@ -87,7 +87,7 @@ class App.WidgetTag extends App.Controller onRemoveTag: (e) => e.preventDefault() - item = $(e.target).parents('li').find('.tag').text() + item = $(e.target).parents('li').find('.js-tag').text() return if !item @tags = _.filter(@tags, (tagItem) -> return tagItem if tagItem isnt item ) diff --git a/app/assets/javascripts/app/views/widget/tag.jst.eco b/app/assets/javascripts/app/views/widget/tag.jst.eco index c6c51ad61..85e61c34b 100644 --- a/app/assets/javascripts/app/views/widget/tag.jst.eco +++ b/app/assets/javascripts/app/views/widget/tag.jst.eco @@ -2,7 +2,7 @@