Merge "Prevent AJAX POST for multipart forms (e.g. file uploads)."
This commit is contained in:
commit
1125df69e9
@ -54,6 +54,10 @@ horizon.addInitFunction(function() {
|
||||
|
||||
$(document).on('submit', '.modal:not(.static_page) form', function (evt) {
|
||||
var $form = $(this);
|
||||
if ($form.attr("enctype") === "multipart/form-data") {
|
||||
// AJAX-upload for files is not currently supported.
|
||||
return;
|
||||
}
|
||||
evt.preventDefault();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
|
Loading…
x
Reference in New Issue
Block a user