Skip to content

Instantly share code, notes, and snippets.

@gentunian
Last active August 29, 2015 14:24
Show Gist options
  • Save gentunian/82517b92c2e76cf4b26c to your computer and use it in GitHub Desktop.
Save gentunian/82517b92c2e76cf4b26c to your computer and use it in GitHub Desktop.
some code example
Template.sessionDialog.onRendered(function() {
$('#myModal').on('hidden.bs.modal', function (e) {
Blaze.remove(Blaze.getView($('#myModal').get(0)));
})
});
Template.loggedin.events({
"click #showCreateSessionDialog": function (e, tmpl) {
Blaze.renderWithData(Template.sessionDialog,
{
dialogTitle: 'Create Session',
primaryButtonText: 'Create',
createSession: true,
},
$('body').get(0)
);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment