summaryrefslogtreecommitdiffstats
path: root/js/service/Loading.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-19 02:22:02 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-19 02:22:02 +0200
commit90584316b8f275fcad904b644676544eb0322636 (patch)
tree35ead28e8f0cdccc1771464442bb83ce5b558cc6 /js/service/Loading.js
parentded252d29e99e068ea341506129e47a05e053a24 (diff)
add test for firstrun page
Diffstat (limited to 'js/service/Loading.js')
-rw-r--r--js/service/Loading.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/js/service/Loading.js b/js/service/Loading.js
new file mode 100644
index 000000000..eb42655a5
--- /dev/null
+++ b/js/service/Loading.js
@@ -0,0 +1,27 @@
+/**
+ * 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 2014
+ */
+app.service('Loading', function () {
+ 'use strict';
+
+ this.loading = {
+ global: false,
+ content: false,
+ autopaging: false
+ };
+
+ this.setLoading = function (area, isLoading) {
+ this.loading[area] = isLoading;
+ };
+
+ this.isLoading = function (area) {
+ return this.loading[area];
+ };
+
+}); \ No newline at end of file