Update route filters on poem (de)activation

This commit is contained in:
Vit Brunner
2014-12-22 18:31:13 +01:00
parent c3b6f377e3
commit 53190cb313
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
angular.module("sideBySide").factory "load", ['fetch', 'poems', (fetch, poems) ->
angular.module("sideBySide").factory "load", ['filter', 'fetch', 'poems', (filter, fetch, poems) ->
# Load poems
#
# @param base [String] Path to config file directory
@@ -22,4 +22,5 @@ angular.module("sideBySide").factory "load", ['fetch', 'poems', (fetch, poems) -
disp = display or config.data.display
poems.all = (activize(poem, disp) for poem in poemList)
poems.heading = config.data.heading
filter.update()
]