From 750f30189bed8057a83efe39cc6bf7d5d2f8f28c Mon Sep 17 00:00:00 2001 From: Vit Brunner Date: Tue, 6 Jan 2015 16:12:19 +0100 Subject: [PATCH] Update route on active watch --- source/scripts/controllers/comparison.js.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/scripts/controllers/comparison.js.coffee b/source/scripts/controllers/comparison.js.coffee index 4b01c6d..2c536a0 100644 --- a/source/scripts/controllers/comparison.js.coffee +++ b/source/scripts/controllers/comparison.js.coffee @@ -34,12 +34,14 @@ angular.module("sideBySide").controller "ComparisonController", $scope.all = poems.all scroll() + if not $scope.meta[0].Loading + route.update 'display', filter.getFilter() + $scope.switchActive = (poem) -> length = poems.getActive().length active = poem.meta.Active if (length > min or not active) and (length < max or active) poem.meta.Active = ! active - route.update 'display', filter.getFilter() # TODO else notification $scope.flipPick = ->