Update route on active watch

This commit is contained in:
Vit Brunner
2015-01-06 16:12:19 +01:00
parent 46f06dacad
commit 750f30189b
@@ -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 = ->