Commit 8f83790f authored by bbaer's avatar bbaer
Browse files

adding function to call save and change page from outside.

parent cfa3d8ea
......@@ -53,6 +53,7 @@ var QfqNS = QfqNS || {};
this.lockAcquired = false;
this.formImmutableDueToConcurrentAccess = false;
this.lockRenewalPhase = false;
this.goToAfterSave = false;
this.additionalQueryParameters = {
'recordHashMd5': this.getRecordHashMd5()
......@@ -522,6 +523,11 @@ var QfqNS = QfqNS || {};
}
};
n.QfqForm.prototype.callSave = function(uri) {
this.handleSaveClick();
this.goToAfterSave = uri;
};
/**
* @private
*/
......@@ -954,6 +960,11 @@ var QfqNS = QfqNS || {};
return;
}
if (this.goToAfterSave) {
window.location = this.goToAfterSave;
return;
}
break;
case 'close':
if (!data.redirect || data.redirect === "no") {
......
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