Fixed removing tags.
This commit is contained in:
parent
518d4c2632
commit
a8706c02ee
2 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue