Merge "Prevent AJAX POST for multipart forms (e.g. file uploads)."

This commit is contained in:
Jenkins 2012-03-25 04:22:21 +00:00 committed by Gerrit Code Review
commit 1125df69e9

View File

@ -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",