Template.newPost.events({
  'submit': function () {
    "use strict";
    event.preventDefault();
    var title = $('form .title').val();
    var url =   $('form .url').val();
    Meteor.call('newPost', {
      title: title,
      url: url
    }, function (err) {
      if (err) {
        throw err;
      } else {
        document.location.href = '/';
      }
    });
  }
});

Template.newPost.events({
  'submit': function (event) {
    "use strict";
    event.preventDefault();
    var title = $('form .title').val();
    var url =   $('form .url').val();
    Meteor.call('newPost', {
      title: title,
      url: url
    }, function (err) {
      if (err) {
        throw err;
      } else {
        document.location.href = '/';
      }
    });
  }
});

Fix Firefox bug when creating a new post
Fix Firefox bug when creating a new post

Event wasn't defined, so it's kind of difficult to call preventDefault() on – Chrome doesn't auto-submit the form without an action, but Firefox does.
