diff --git a/src/scripts/controllers/settings-ariang.js b/src/scripts/controllers/settings-ariang.js index 956371c..1ad32ed 100644 --- a/src/scripts/controllers/settings-ariang.js +++ b/src/scripts/controllers/settings-ariang.js @@ -14,11 +14,17 @@ return; } + var noticicationScope = $rootScope.$new(); + + noticicationScope.refreshPage = function () { + $window.location.reload(); + }; + lastRefreshPageNotification = ariaNgNotificationService.notifyInPage('', 'Configuration has been modified, please reload the page for the changes to take effect.', { delay: false, type: 'info', templateUrl: 'setting-changed-notification.html', - scope: $scope, + scope: noticicationScope, onClose: function () { lastRefreshPageNotification = null; } @@ -180,10 +186,6 @@ $window.location.reload(); }; - $scope.refreshPage = function () { - $window.location.reload(); - }; - $('[data-toggle="popover"]').popover(); $rootScope.loadPromise = $timeout(function () {}, 100);