save readingmode when changed

This commit is contained in:
Athou
2013-04-03 13:56:18 +02:00
parent bb73eb18ae
commit 8b9c1786b3

View File

@@ -194,6 +194,12 @@ module.directive('toolbar', function($state, $stateParams, $route, $location,
});
$scope.settingsService = SettingsService;
$scope.$watch('settingsService.settings.readingMode', function(newValue,
oldValue) {
if (newValue && oldValue && newValue != oldValue) {
SettingsService.save();
}
});
$scope.refresh = function() {
$scope.$emit('emitReload');
};