diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-15 14:17:55 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-15 14:17:55 +0200 |
commit | 145ba6a487657c9864500c94dd3a89d9af8f4a87 (patch) | |
tree | 0f529b63d82e4f391dc64fb9ec1b9add497759e7 /js/service | |
parent | 9d3de6d0959e73096ce0fa0ad9f6f7c702b0e0a8 (diff) |
add some notes
Diffstat (limited to 'js/service')
-rw-r--r-- | js/service/loading.js | 13 | ||||
-rw-r--r-- | js/service/setup.js | 17 |
2 files changed, 25 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 diff --git a/js/service/setup.js b/js/service/setup.js new file mode 100644 index 000000000..07f4c605f --- /dev/null +++ b/js/service/setup.js @@ -0,0 +1,17 @@ +/** + * ownCloud - News + * + * This file is licensed under the Affero General Public License version 3 or + * later. See the COPYING file. + * + * @author Bernhard Posselt <dev@bernhard-posselt.com> + * @copyright Bernhard Posselt 2012, 2014 + */ +app.service('Setup', function () { + 'use strict'; + + this.load = function () { + console.log('init'); + }; + +});
\ No newline at end of file |