diff options
Diffstat (limited to 'module/web/static/js/views/headerView.js')
-rw-r--r-- | module/web/static/js/views/headerView.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/module/web/static/js/views/headerView.js b/module/web/static/js/views/headerView.js index 9f7dda044..dd1030220 100644 --- a/module/web/static/js/views/headerView.js +++ b/module/web/static/js/views/headerView.js @@ -5,6 +5,8 @@ define(['jquery', 'backbone', 'flot'], function($, Backbone) { el: 'header', events: { + 'click i.icon-tasks': 'show_taskList', + 'click .popover .close': 'hide_taskList', 'click .btn-grabber': 'open_grabber' }, @@ -74,6 +76,15 @@ define(['jquery', 'backbone', 'flot'], function($, Backbone) { render: function() { }, + show_taskList: function() { + // TODO: fix animation + this.$('.popover').transit({'opacity': 'show'}); + }, + + hide_taskList: function() { + this.$('.popover').transit({'opacity': 'hide'}); + }, + open_grabber: function() { var self = this; _.requireOnce(['views/linkGrabberModal'], function(modalView) { |