reload list when viewmode changes (#62)

This commit is contained in:
Athou
2013-05-06 12:23:55 +02:00
parent 0983920403
commit 8c70f255c2

View File

@@ -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);