ui and settings ready
This commit is contained in:
@@ -14,6 +14,8 @@ Template.tabs.helpers({
|
||||
selected_controller: function() {
|
||||
return Session.get('controller_id');
|
||||
},
|
||||
|
||||
accessible: accessible
|
||||
});
|
||||
|
||||
Template.tabs.events({
|
||||
@@ -32,6 +34,11 @@ Template.tabs.events({
|
||||
'click .settings': function() {
|
||||
Session.set('templateName', 'settings');
|
||||
},
|
||||
|
||||
'click .alarm': function() {
|
||||
Session.set('templateName', 'alarm');
|
||||
},
|
||||
|
||||
'click #switch': function() {
|
||||
var instance = Template.instance();
|
||||
controller_id = instance.$('#controller').val();
|
||||
|
||||
Reference in New Issue
Block a user