From 8c70f255c2b7bc77c20539e250c4560ef028aefe Mon Sep 17 00:00:00 2001 From: Athou Date: Mon, 6 May 2013 12:23:55 +0200 Subject: [PATCH] reload list when viewmode changes (#62) --- src/main/webapp/js/controllers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index 06e5b1b7..55b5ef7e 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -377,6 +377,7 @@ function($scope, $http, $state, $stateParams, $route, $location, newValue, oldValue) { if (newValue && oldValue && newValue != oldValue) { SettingsService.save(); + $scope.$emit('emitReload'); } }); $scope.refresh = function() { @@ -607,7 +608,7 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer }; $scope.onScroll = function(entry) { - if (SettingsService.settings.viewMode == 'expanded'){ + if (SettingsService.settings.viewMode == 'expanded') { $scope.current = entry; if(SettingsService.settings.scrollMarks) { $scope.mark(entry, true);