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) {
// Headers sent from Feedback class already handled through an ajaxComplete
if (! jqxhr.getResponseHeader('X-Tiki-Feedback')) {
complete: function () {
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