diff --git a/src/main/webapp/directives/toolbar.html b/src/main/webapp/directives/toolbar.html index 9078b5c1..25d17814 100644 --- a/src/main/webapp/directives/toolbar.html +++ b/src/main/webapp/directives/toolbar.html @@ -1,11 +1,11 @@
Reading Mode -
+
- +
\ No newline at end of file diff --git a/src/main/webapp/js/directives.js b/src/main/webapp/js/directives.js index f9109e91..ba67f9c6 100644 --- a/src/main/webapp/js/directives.js +++ b/src/main/webapp/js/directives.js @@ -81,11 +81,14 @@ module.directive('toolbar', function(SettingsService) { restrict : 'E', replace : true, templateUrl : 'directives/toolbar.html', - controller : function($scope, SettingsService) { + controller : function($scope, $route, SettingsService) { $scope.settings = SettingsService.settings; + $scope.refresh = function() { + $route.reload(); + } }, link : function($scope, element) { - element.find('button').bind('click', function() { + element.find('.read-mode button').bind('click', function() { SettingsService.save(); }); }