summaryrefslogtreecommitdiffstats
path: root/js/service/loading.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/service/loading.js')
-rw-r--r--js/service/loading.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/service/loading.js b/js/service/loading.js
new file mode 100644
index 000000000..1b6ecffd0
--- /dev/null
+++ b/js/service/loading.js
@@ -0,0 +1,23 @@
+/**
+ * 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('Loading', function () {
+ 'use strict';
+
+ this.loading = false;
+
+ this.setLoading = function (isLoading) {
+ this.loading = isLoading;
+ };
+
+ this.isLoading = function () {
+ return this.loading;
+ };
+
+}); \ No newline at end of file