diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-16 15:43:42 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-16 15:43:42 +0200 |
commit | a412194653eb2ba102a678357f5e6351343b8671 (patch) | |
tree | 65729b0d4725a33f9797444ae56bd3f016ed6a00 /js/public | |
parent | c20b6d34c73c0bcc697e0d6d62403f57f3f3f5f2 (diff) |
implement autopaging and proper loading symbols fix #45 and #26
Diffstat (limited to 'js/public')
-rw-r--r-- | js/public/app.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/js/public/app.js b/js/public/app.js index 406007894..603600810 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -439,17 +439,18 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. (function() { angular.module('News').controller('ItemController', [ - '$scope', 'ItemBusinessLayer', 'FeedModel', 'FeedLoading', 'FeedBusinessLayer', 'Language', function($scope, ItemBusinessLayer, FeedModel, FeedLoading, FeedBusinessLayer, Language) { + '$scope', 'ItemBusinessLayer', 'FeedModel', 'FeedLoading', 'FeedBusinessLayer', 'Language', 'AutoPageLoading', function($scope, ItemBusinessLayer, FeedModel, FeedLoading, FeedBusinessLayer, Language, AutoPageLoading) { var ItemController; ItemController = (function() { - function ItemController(_$scope, _itemBusinessLayer, _feedModel, _feedLoading, _feedBusinessLayer, _language) { + function ItemController(_$scope, _itemBusinessLayer, _feedModel, _feedLoading, _autoPageLoading, _feedBusinessLayer, _language) { var _this = this; this._$scope = _$scope; this._itemBusinessLayer = _itemBusinessLayer; this._feedModel = _feedModel; this._feedLoading = _feedLoading; + this._autoPageLoading = _autoPageLoading; this._feedBusinessLayer = _feedBusinessLayer; this._language = _language; this._autoPaging = true; @@ -458,6 +459,9 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. this._$scope.isLoading = function() { return _this._feedLoading.isLoading(); }; + this._$scope.isAutoPaging = function() { + return _this._autoPageLoading.isLoading(); + }; this._$scope.getFeedTitle = function(feedId) { var feed; @@ -491,7 +495,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. return ItemController; })(); - return new ItemController($scope, ItemBusinessLayer, FeedModel, FeedLoading, FeedBusinessLayer, Language); + return new ItemController($scope, ItemBusinessLayer, FeedModel, FeedLoading, AutoPageLoading, FeedBusinessLayer, Language); } ]); |