diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-02 20:51:04 +0100 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-02 20:51:04 +0100 |
| commit | 824382b3ea5902d5e5343d2898232e1521565dff (patch) | |
| tree | 639d190c983316a94a1bdc95e3470cf5d3b3d2c6 /client/js/services/Loading.js | |
| parent | e2be86814e8ac92778bfa9fc49e1d02946a7efbc (diff) | |
Clean file name
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 }; - - }]); |
