mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
The move!
This commit is contained in:
parent
1daf480b1b
commit
25526cc4d9
1147 changed files with 85 additions and 8524 deletions
|
@ -1,27 +0,0 @@
|
|||
(function() {
|
||||
angular.module('ngLoadingSpinner', ['angularSpinner'])
|
||||
.directive('usSpinner',
|
||||
[
|
||||
'$http', '$rootScope', function($http, $rootScope) {
|
||||
return {
|
||||
link: function(scope, elm, attrs) {
|
||||
$rootScope.spinnerActive = false;
|
||||
scope.isLoading = function() {
|
||||
return $http.pendingRequests.length > 0;
|
||||
};
|
||||
|
||||
scope.$watch(scope.isLoading,
|
||||
function(loading) {
|
||||
$rootScope.spinnerActive = loading;
|
||||
if (loading) {
|
||||
elm.removeClass('ng-hide');
|
||||
} else {
|
||||
elm.addClass('ng-hide');
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
]);
|
||||
}).call(this);
|
Loading…
Add table
Add a link
Reference in a new issue