fix cannot refresh page bug in notification

This commit is contained in:
MaysWind 2017-04-01 23:32:25 +08:00
parent b54d70d9b9
commit 37b1da6ee0

View file

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