diff options
Diffstat (limited to 'js/service/loading.js')
-rw-r--r-- | js/service/loading.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/js/service/loading.js b/js/service/loading.js index 1b6ecffd0..e15d0fd7a 100644 --- a/js/service/loading.js +++ b/js/service/loading.js @@ -10,14 +10,17 @@ app.service('Loading', function () { 'use strict'; - this.loading = false; + this.loading = { + global: false, + content: false + }; - this.setLoading = function (isLoading) { - this.loading = isLoading; + this.setLoading = function (area, isLoading) { + this.loading[area] = isLoading; }; - this.isLoading = function () { - return this.loading; + this.isLoading = function (area) { + return this.loading[area]; }; });
\ No newline at end of file |