Properly scope form selector

This commit is contained in:
Björn Dahlgren 2015-02-05 01:53:06 +01:00
parent 64d14bb80f
commit 1477bd760a

View File

@ -45,7 +45,7 @@ define(function (require) {
submit: function (modal) {
var self = this;
var $form = $('form');
var $form = this.$el.find('form');
if (modal) {
self.modal.preventClose();