From 4a05bee29f142878b3b16020143f43492a55e115 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 15 Jul 2013 23:18:50 +0200 Subject: click on logo navigates to dashboard --- pyload/web/app/scripts/views/headerView.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pyload/web/app/scripts') 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 = []; -- cgit v1.2.3