diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-02 21:03:25 +0100 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-02 21:03:25 +0100 |
| commit | dde482df6492e874ffb30c3c5127e620c418c57b (patch) | |
| tree | c140423cc3d396a8a3507496b392894cbe47fecf /client/js/services/Loading.js | |
| parent | 6ce1bbc7be91aa6441c3ff168a734ed25479eb72 (diff) | |
| parent | 85222e1246b3805100428717874d15aafd682d26 (diff) | |
Correct conflicts
Diffstat (limited to 'client/js/services/Loading.js')
| -rw-r--r-- | client/js/services/Loading.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/client/js/services/Loading.js b/client/js/services/Loading.js new file mode 100644 index 0000000..db06194 --- /dev/null +++ b/client/js/services/Loading.js @@ -0,0 +1,23 @@ + +mainApp.factory('Loading',[ function(){ + /** + * Display Loading modal + */ + var start=function(){ + $('#loadingModal').modal({backdrop: 'static', keyboard: false}); + }; + + /** + * Hide Loading modal + */ + var stop=function(){ + $('#loadingModal').modal('hide'); + } + + + // Service returns + return { + start:start, + stop:stop + }; +}]); |
