summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/views
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-27 21:37:48 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-27 21:37:48 +0100
commit2e2cb3e768c86c6f8984f331d467fa60be8536f0 (patch)
treef8c476498b7f2120364f32a2202cd465afce549e /module/web/static/js/views
parentadded content to progress popover (diff)
downloadpyload-2e2cb3e768c86c6f8984f331d467fa60be8536f0.tar.xz
button for progress popover
Diffstat (limited to 'module/web/static/js/views')
-rw-r--r--module/web/static/js/views/headerView.js11
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) {