fixed router bug
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user