mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
added preventDefault to submit
This commit is contained in:
parent
8ae7477a99
commit
887fdbc206
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
Template.submit.events = {
|
||||
'click input[type=submit]': function(){
|
||||
'click input[type=submit]': function(event){
|
||||
event.preventDefault();
|
||||
if(!Meteor.user()) throw 'You must be logged in.';
|
||||
|
||||
var title= $('#title').val();
|
||||
|
|
Loading…
Add table
Reference in a new issue