js: Mark autosubmits as autosubmits, not as autorefreshes

fixes #4346
This commit is contained in:
Johannes Meyer 2021-04-09 17:03:28 +02:00
parent aa03631eef
commit 85e9f06510
1 changed files with 2 additions and 1 deletions

View File

@ -181,8 +181,9 @@
}
}
var req = this.loadUrl(url, $target, data, method, undefined, !! $autoSubmittedBy);
var req = this.loadUrl(url, $target, data, method);
req.forceFocus = $autoSubmittedBy ? $autoSubmittedBy : $button.length ? $button : null;
req.autosubmit = !! $autoSubmittedBy;
req.addToHistory = method === 'GET';
req.progressTimer = progressTimer;