Fixed removing tags.

This commit is contained in:
Martin Edenhofer 2015-09-28 13:46:10 +02:00
parent 518d4c2632
commit a8706c02ee
2 changed files with 2 additions and 2 deletions

View file

@ -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 )

View file

@ -2,7 +2,7 @@
<ul class="list list--sidebar">
<% for tag in @tags: %>
<li class="list-item">
<div class="list-item-name"><%= tag %></div>
<div class="list-item-name js-tag"><%= tag %></div>
<div class="list-item-delete js-delete">
<%- @Icon('diagonal-cross') %>
</div>