fixed router bug

This commit is contained in:
Senad Uka
2016-10-29 17:01:09 +02:00
parent a8e37f2f48
commit 971ca889fc
5 changed files with 37 additions and 26 deletions

View File

@@ -18,25 +18,27 @@ Template.tabs.helpers({
accessible: Meteor.zoblak.client.accessible
});
Template.tabs.events({
'click .start': function() {
Session.set('templateName', 'start');
Router.go('/');
},
'click .weather': function() {
Session.set('templateName', 'weather');
Router.go('/weather');
},
'click .log': function() {
Session.set('templateName', 'log');
Router.go('/log');
},
'click .surveillance': function() {
Session.set('templateName', 'surveillance');
},
'click .settings': function() {
Session.set('templateName', 'settings');
Router.go('/surveillance');
},
'click .alarm': function() {
Session.set('templateName', 'alarm');
Router.go('/alarm');
},
'click .settings': function() {
Session.set('templateName', 'settings');
},
'click #switch': function() {