From fa18c80e84ba1642143ea138c9ffb613f4f01bbf Mon Sep 17 00:00:00 2001 From: Athou Date: Sun, 24 Mar 2013 17:52:43 +0100 Subject: [PATCH] implements refresh button --- src/main/webapp/directives/toolbar.html | 4 ++-- src/main/webapp/js/directives.js | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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(); }); }