loader.js: Don't add form submits other than `GET`s to the history

This has previously not been an issue, as form submits seem to have
never targeted another url than their container's current one.
Though any form that did this, was pushed to history upon submit.
This happens now only for `GET` forms.
This commit is contained in:
Johannes Meyer 2020-10-15 09:48:45 +02:00
parent e346c1c88c
commit fbf3a1f757
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@
var req = this.loadUrl(url, $target, data, method);
req.forceFocus = $autoSubmittedBy ? $autoSubmittedBy : $button.length ? $button : null;
req.addToHistory = method === 'GET';
req.progressTimer = progressTimer;
return req;
},