From 90584316b8f275fcad904b644676544eb0322636 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 19 May 2014 02:22:02 +0200 Subject: add test for firstrun page --- js/service/Loading.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 js/service/Loading.js (limited to 'js/service/Loading.js') 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 + * @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 -- cgit v1.2.3