diff options
Diffstat (limited to 'js/controller/ContentController.js')
-rw-r--r-- | js/controller/ContentController.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index 15459c01b..ab01bf0cd 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -12,6 +12,7 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou $filter) { 'use strict'; + this.showDropdown = []; var self = this; ItemResource.clear(); @@ -222,4 +223,15 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou }; this.activeItem = this.getFirstItem(); -});
\ No newline at end of file + + this.openDropdown = function(itemId){ + let actualItem = this.showDropdown[itemId]; + this.showDropdown = []; + this.showDropdown[itemId] = !actualItem; + }; + + this.hide = function(){ + this.showDropdown = []; + }; + +}); |