added preventDefault to submit

This commit is contained in:
Sacha Greif 2012-09-02 12:33:33 +09:00
parent 8ae7477a99
commit 887fdbc206

View file

@ -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();