From 268157ca246280aace22dff949367691d7db96d6 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Fri, 31 May 2013 16:19:57 -0400 Subject: [PATCH] tags: use explicit {#each users[_userId].tags} instead of model.ref private path {#each _user.tags}. fixed many tags issues. see https://github.com/codeparty/derby/issues/267 --- src/app/filters.coffee | 4 +--- views/app/filters.html | 16 ++++++++-------- views/app/tasks.html | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/app/filters.coffee b/src/app/filters.coffee index 605e4ebb63..a7c1a87dcf 100644 --- a/src/app/filters.coffee +++ b/src/app/filters.coffee @@ -14,9 +14,7 @@ module.exports.app = (appExports, model) -> model.set '_newTag', '' appExports.toggleEditingTags = -> - before = model.get('_editingTags') - model.set '_editingTags', !before, -> - location.reload() if before is true #when they're done, refresh the page + model.set '_editingTags', !model.get('_editingTags') appExports.clearFilters = -> user.set 'filters', {} diff --git a/views/app/filters.html b/views/app/filters.html index 1a04d02a3a..23581d7fc9 100644 --- a/views/app/filters.html +++ b/views/app/filters.html @@ -7,8 +7,8 @@
  • - {#each _user.tags as :tag} -
  • + {#each users[_userId].tags as :tag} +
  • {#if _editingTags}
    @@ -29,7 +29,7 @@ {/}
  • - +
  • @@ -37,15 +37,15 @@ - + @@ -53,9 +53,9 @@
    Tags - {{#each _user.tags as :tag}} + {#each users[_userId].tags as :tag} - {{/}} + {/}
    \ No newline at end of file diff --git a/views/app/tasks.html b/views/app/tasks.html index 7df21248f3..5a7eab3899 100644 --- a/views/app/tasks.html +++ b/views/app/tasks.html @@ -158,7 +158,7 @@ -
  • +