summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-15 23:18:50 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-15 23:18:50 +0200
commit4a05bee29f142878b3b16020143f43492a55e115 (patch)
tree8eaef9bf26cbbf62f866e528c1c8bdcfe0469eaa /pyload/web/app/scripts
parentLocale template files updated (diff)
downloadpyload-4a05bee29f142878b3b16020143f43492a55e115.tar.xz
click on logo navigates to dashboard
Diffstat (limited to 'pyload/web/app/scripts')
-rw-r--r--pyload/web/app/scripts/views/headerView.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/pyload/web/app/scripts/views/headerView.js b/pyload/web/app/scripts/views/headerView.js
index c1e71cc86..afafcf564 100644
--- a/pyload/web/app/scripts/views/headerView.js
+++ b/pyload/web/app/scripts/views/headerView.js
@@ -10,7 +10,8 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ServerStatus', 'colle
events: {
'click .icon-list': 'toggle_taskList',
'click .popover .close': 'toggle_taskList',
- 'click .btn-grabber': 'open_grabber'
+ 'click .btn-grabber': 'open_grabber',
+ 'click .logo': 'gotoDashboard'
},
ui: {
@@ -66,6 +67,10 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ServerStatus', 'colle
this.ws = ws;
},
+ gotoDashboard: function() {
+ App.navigate('');
+ },
+
initGraph: function() {
var totalPoints = 120;
var data = [];