Commit f49a9e6e authored by lindonb's avatar lindonb

Avoid sending feedback twice when feedback class is used with ajax

parent 376c1193
Pipeline #50477685 failed with stages
in 27 minutes and 54 seconds
......@@ -201,8 +201,11 @@ function ajaxSubmitEventHandler(successCallback) {
successCallback.apply(form, [data]);
},
error: function (jqxhr) {
modal.tikiModal();
$(form).showError(jqxhr);
// Headers sent from Feedback class already handled through an ajaxComplete
if (! jqxhr.getResponseHeader('X-Tiki-Feedback')) {
modal.tikiModal();
$(form).showError(jqxhr);
}
},
complete: function () {
modal.tikiModal();
......
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