mirror of https://github.com/akveo/blur-admin
parent
dda370e61b
commit
7c7574d099
|
@ -15,4 +15,10 @@ angular.module('BlurAdmin', [
|
|||
|
||||
'BlurAdmin.theme',
|
||||
'BlurAdmin.pages'
|
||||
]);
|
||||
]).run(scrollTop);
|
||||
|
||||
function scrollTop($rootScope) {
|
||||
$rootScope.$on('$stateChangeSuccess', function(){
|
||||
window.scrollTo(0, 0);
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue