new tag sets _newTag to '', reset dom, static-bound tag loop
This commit is contained in:
@@ -13,7 +13,9 @@ module.exports.app = (appExports, model) ->
|
||||
user.push "tags",
|
||||
id: model.id()
|
||||
name: model.get("_newTag")
|
||||
, -> browser.resetDom(model)
|
||||
, ->
|
||||
model.set '_newTag', ''
|
||||
browser.resetDom(model)
|
||||
|
||||
appExports.toggleEditingTags = ->
|
||||
model.set '_editingTags', !model.get('_editingTags')
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Filter:
|
||||
</div>
|
||||
<ul class="nav nav-pills">
|
||||
{#each _user.tags as :tag}
|
||||
{{#each _user.tags as :tag}}
|
||||
<li class="{#if _user.filters[:tag.id]}active{/}" style='position:relative;'>
|
||||
{#if _editingTags}
|
||||
<a style='float:left;' x-bind=click:filtersDeleteTag data-tag-id={:tag.id}><i class='icon-trash'></i></a> 
|
||||
@@ -14,7 +14,7 @@
|
||||
{/}
|
||||
|
||||
</li>
|
||||
{/}
|
||||
{{/}}
|
||||
<li>
|
||||
{#if _editingTags}
|
||||
<form x-bind="submit:filtersNewTag">
|
||||
|
||||
Reference in New Issue
Block a user