diff options
Diffstat (limited to 'js/config/run.js')
-rw-r--r-- | js/config/run.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/js/config/run.js b/js/config/run.js index 1c87228fe..2bf9de7d6 100644 --- a/js/config/run.js +++ b/js/config/run.js @@ -7,15 +7,18 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2012, 2014 */ -app.run(function ($rootScope, $location, Loading) { +app.run(function ($rootScope, $location, Loading, Setup) { 'use strict'; + // load feeds, settings and last read feed + Setup.load(); + $rootScope.$on('$routeChangeStart', function () { - Loading.isActive = true; + Loading.setLoading('content', true); }); $rootScope.$on('$routeChangeSuccess', function () { - Loading.isActive = false; + Loading.setLoading('content', false); }); // in case of wrong id etc show all items |