diff options
| author | Yoggzo <yogg@epsina.com> | 2016-03-08 17:30:26 +0100 |
|---|---|---|
| committer | Yoggzo <yogg@epsina.com> | 2016-03-08 17:30:26 +0100 |
| commit | 89f2c4ac8cd6b0f7766170d588eae2407124f8fc (patch) | |
| tree | 6275b180b1c1f45caba3e84437119f784f5ebfba /client/js/services/Loading.js | |
| parent | 66baa3ffc8bd119558eeb1e87cb05c6008df9d6f (diff) | |
| parent | 3b569b6d008d5b1936ee04948cf5c1cc08790f39 (diff) | |
Merge branch 'develop' into Evan
Diffstat (limited to 'client/js/services/Loading.js')
| -rw-r--r-- | client/js/services/Loading.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/client/js/services/Loading.js b/client/js/services/Loading.js index b12aaa0..db06194 100644 --- a/client/js/services/Loading.js +++ b/client/js/services/Loading.js @@ -1,22 +1,23 @@ -mainApp.factory('Loading',[ '$http', 'Identity', function($http, Identity){ - - - - +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 }; - - }]); |
