diff --git a/js/page/publish.js b/js/page/publish.js index d2b1ceba6..a21d6516a 100644 --- a/js/page/publish.js +++ b/js/page/publish.js @@ -12,7 +12,11 @@ var publishNumberStyle = { var PublishPage = React.createClass({ _requiredFields: ['name', 'bid', 'meta_title', 'meta_author', 'meta_license', 'meta_description'], - handleSubmit: function() { + handleSubmit: function(event) { + if (typeof event !== 'undefined') { + event.preventDefault(); + } + this.setState({ submitting: true, }); @@ -456,6 +460,7 @@ var PublishPage = React.createClass({