Commit 23650113 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Changes in commit bb15e252 messed up response handling when saving forms. Fixed.

parent c3b4e956
......@@ -431,25 +431,39 @@ var QfqNS = QfqNS || {};
if (data['form-update']) {
this.applyElementConfiguration(data['form-update']);
}
return;
}
return;
if (data.redirect === "client") {
window.history.back();
return;
}
if (data.redirect === "url" || data['redirect-url']) {
window.location = data['redirect-url'];
return;
}
break;
case 'new':
var target = this.getNewButtonTarget();
window.location = this.getNewButtonTarget();
return;
}
if (data.redirect === "client") {
window.history.back();
return;
}
default:
if (data.redirect === "client") {
window.history.back();
return;
}
if (data.redirect === "url" || data['redirect-url']) {
window.location = data['redirect-url'];
return;
if (data.redirect === "url" || data['redirect-url']) {
window.location = data['redirect-url'];
return;
}
break;
}
};
n.QfqForm.prototype.getNewButtonTarget = function () {
......
Supports Markdown
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