diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-02 07:14:05 +0100 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-02 07:14:05 +0100 |
| commit | 2d99f1ecf2164431b03eff5bcbaa7abe67287602 (patch) | |
| tree | 584cf16d7818886d9126e8d47444d449039514ea /client/js/services | |
| parent | e9108d4b97132e853a71cb1dfbad6cf4bddb599b (diff) | |
Create loading service
Diffstat (limited to 'client/js/services')
| -rw-r--r-- | client/js/services/Loading.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/client/js/services/Loading.js b/client/js/services/Loading.js new file mode 100644 index 0000000..b12aaa0 --- /dev/null +++ b/client/js/services/Loading.js @@ -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 + }; + + +}]); |
