summaryrefslogtreecommitdiffstats
path: root/js/app/controllers/itemcontroller.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/app/controllers/itemcontroller.coffee')
-rw-r--r--js/app/controllers/itemcontroller.coffee9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/app/controllers/itemcontroller.coffee b/js/app/controllers/itemcontroller.coffee
index ee2fa7e82..1b5d4a350 100644
--- a/js/app/controllers/itemcontroller.coffee
+++ b/js/app/controllers/itemcontroller.coffee
@@ -87,6 +87,15 @@ Language, AutoPageLoading, Compact) ->
@_$scope.isCompactView = =>
return @_compact.isCompact()
+ @_$scope.is =
+ active: 0
+
+ @_$scope.toggleOpen = (id) =>
+ if id == @_$scope.is.active
+ @_$scope.is.active = 0
+ else
+ @_$scope.is.active = id
+
return new ItemController($scope, ItemBusinessLayer, FeedModel, FeedLoading,
AutoPageLoading, FeedBusinessLayer, Language,