Last active
August 29, 2015 14:24
-
-
Save gentunian/82517b92c2e76cf4b26c to your computer and use it in GitHub Desktop.
some code example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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