Skip to content

Instantly share code, notes, and snippets.

@lukeclifton
Created November 13, 2014 11:46
Show Gist options
  • Save lukeclifton/bfaaa8cea70824f89c90 to your computer and use it in GitHub Desktop.
Save lukeclifton/bfaaa8cea70824f89c90 to your computer and use it in GitHub Desktop.
formsubmitter function
Template.customerCreate.rendered = function () {
$('.formsubmitter').click(function(e) {
e.preventDefault();
var form = '#' + $(this).data('form-id');
$(form).submit();
});
}
@lukeclifton
Copy link
Author

but yes agree with @richsilv, global rendered functions is still a need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment