Files
DiceCloud/rpg-docs/client/views/layout/layout.js
2015-04-29 12:25:51 +02:00

23 lines
497 B
JavaScript

Template.layout.rendered = function() {
$(window).on("popstate", GlobalUI.popStateHandler);
};
Template.layout.destroyed = function() {
$(window).off("popstate", GlobalUI.popStateHandler);
};
Template.layout.helpers({
notSelected: function(){
return Session.get("global.ui.detailShow") ? "not-selected" : null;
}
});
Template.layout.events({
"tap #homeNav": function(event, instance){
Router.go("/");
},
"tap #profileLink": function(event, instance){
Router.go("profile");
},
});