Open
Description
I am trying to manually submit form using nette.ajax but it only gets submitted first time. Other times it ends on this condition because statusText
is set to cancelled - magic for me. I don't really have any idea what's wrong or where I should start digging. Any help will be appreciated!
Code I use:
fileUploadForm.on('submit.file-upload', function(e) {
$(this).netteAjax(e, {
complete: function(payload, status, xhr) {
basicFileUploadHandler._successCb(payload, status, xhr, uploadRow, filesize);
}
});
fileUploadForm.off('submit.file-upload');
e.stopImmediatePropagation();
e.preventDefault();
return false;
}).trigger('submit.file-upload');
Metadata
Metadata
Assignees
Labels
No labels