admin: Add an animation when modifications are in progress
This commit is contained in:
parent
34f175e57b
commit
b86a6ebc0c
2 changed files with 38 additions and 1 deletions
|
@ -450,7 +450,7 @@ angular.module("FICApp")
|
|||
};
|
||||
})
|
||||
|
||||
.run(function($rootScope, $http, $interval, Settings, $location) {
|
||||
.run(function($rootScope, $http, $interval, $timeout, Settings, $location) {
|
||||
$rootScope.$location = $location;
|
||||
$rootScope.Utils = {
|
||||
keys : Object.keys
|
||||
|
@ -491,6 +491,24 @@ angular.module("FICApp")
|
|||
})
|
||||
})
|
||||
}
|
||||
|
||||
$rootScope.$on('$locationChangeStart', function(event, next, current) {
|
||||
if($rootScope.staticFilesNeedUpdate) {
|
||||
$timeout(function () {
|
||||
document.getElementById("circle1").classList.add("play");
|
||||
}, 10);
|
||||
$timeout(function () {
|
||||
document.getElementById("circle1").classList.remove("play");
|
||||
}, 710);
|
||||
|
||||
$timeout(function () {
|
||||
document.getElementById("circle2").classList.add("play");
|
||||
}, 50);
|
||||
$timeout(function () {
|
||||
document.getElementById("circle2").classList.remove("play");
|
||||
}, 750);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
.controller("VersionController", function($scope, Version) {
|
||||
|
|
Reference in a new issue