Create loading service
This commit is contained in:
parent
e9108d4b97
commit
2d99f1ecf2
4 changed files with 49 additions and 3 deletions
22
client/js/services/Loading.js
Normal file
22
client/js/services/Loading.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
mainApp.factory('Loading',[ '$http', 'Identity', function($http, Identity){
|
||||
|
||||
|
||||
|
||||
|
||||
var start=function(){
|
||||
$('#loadingModal').modal({backdrop: 'static', keyboard: false});
|
||||
};
|
||||
|
||||
var stop=function(){
|
||||
$('#loadingModal').modal('hide');
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
start:start,
|
||||
stop:stop
|
||||
};
|
||||
|
||||
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue