Merge pull request #161 from Dahlgren/bugfix/mission-upload

Handle mission form submission event correctly
This commit is contained in:
Björn Dahlgren 2020-06-21 12:12:53 +02:00 committed by GitHub
commit 6dffd9c551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,8 @@ module.exports = Marionette.ItemView.extend({
'click form button': 'submit'
},
submit: function () {
submit: function (event) {
event.preventDefault()
var self = this
var $form = this.$el.find('form')