Commit fe1c7664 authored by Carsten  Rose's avatar Carsten Rose
Browse files

#3854 / Wrong final page: a) New > Save > Close, b) New > Save > Delete, c) New > New

Pressing 'new' on a form skips pushing an entry in the browser history. E.g.: 'List > Edit > New > Close' redirects back to 'Edit'. Also  'List > Edit > New > New > ... > New > Close' redirects back to 'Edit'.
QfqFrom.js: replace 'window.location = target' by window.location.replace(target);
parent 61d75fbb
......@@ -405,8 +405,7 @@ var QfqNS = QfqNS || {};
message: "You have unsaved changes. Do you want to save first?",
type: "warning",
modal: true,
buttons:
[
buttons: [
{label: "Yes", eventName: "yes", focus: true},
{label: "No", eventName: "no"},
{label: "Cancel", eventName: "cancel"}
......@@ -705,7 +704,8 @@ var QfqNS = QfqNS || {};
break;
case 'new':
var target = this.getNewButtonTarget();
window.location = target;
window.location.replace(target);
return;
default:
......
......@@ -16,4 +16,5 @@ var QfqNS = QfqNS || {};
n.escapeJqueryIdSelector = function (idSelector) {
return idSelector.replace(/(:|\.)/, "\\$1");
};
})(QfqNS);
\ No newline at end of file
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