diff options
Diffstat (limited to 'js/app')
-rw-r--r-- | js/app/controllers/itemcontroller.coffee | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/js/app/controllers/itemcontroller.coffee b/js/app/controllers/itemcontroller.coffee index 0d912b507..fb5b5bfa3 100644 --- a/js/app/controllers/itemcontroller.coffee +++ b/js/app/controllers/itemcontroller.coffee @@ -23,14 +23,15 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. angular.module('News').controller 'ItemController', ['$scope', 'ItemBusinessLayer', 'FeedModel', 'FeedLoading', 'FeedBusinessLayer', -'Language', +'Language', 'AutoPageLoading', ($scope, ItemBusinessLayer, FeedModel, FeedLoading, FeedBusinessLayer, -Language) -> +Language, AutoPageLoading) -> class ItemController - constructor: (@_$scope, @_itemBusinessLayer, @_feedModel, @_feedLoading, - @_feedBusinessLayer, @_language) -> + constructor: (@_$scope, @_itemBusinessLayer, @_feedModel, + @_feedLoading, @_autoPageLoading, @_feedBusinessLayer, + @_language) -> @_autoPaging = true @_$scope.itemBusinessLayer = @_itemBusinessLayer @@ -40,6 +41,9 @@ Language) -> @_$scope.isLoading = => return @_feedLoading.isLoading() + @_$scope.isAutoPaging = => + return @_autoPageLoading.isLoading() + @_$scope.getFeedTitle = (feedId) => feed = @_feedModel.getById(feedId) if angular.isDefined(feed) @@ -67,5 +71,5 @@ Language) -> return new ItemController($scope, ItemBusinessLayer, FeedModel, FeedLoading, - FeedBusinessLayer, Language) + AutoPageLoading, FeedBusinessLayer, Language) ]
\ No newline at end of file |