Commit 033273b6 authored by webchick's avatar webchick
Browse files

Issue #2057725 by tim.plunkett, quicksketch: Fixed Regular forms cannot be...

Issue #2057725 by tim.plunkett, quicksketch: Fixed Regular forms cannot be submitted when used as modal forms.
parent b435b703
......@@ -33,9 +33,6 @@
}
}
},
detach: function (context, settings) {
$(context).find('form').off('submit.dialogSubmit');
},
/**
* Scan a dialog for any primary buttons and move them to the button area.
......@@ -69,12 +66,6 @@
}
});
});
if ($buttons.length) {
$dialog.find('form').on('submit.dialogSubmit', function (e) {
$buttons.first().trigger('click');
e.preventDefault();
});
}
return buttons;
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment