Debug v22

This commit is contained in:
ldestailleur
2025-07-17 18:12:46 +02:00
parent 2858eb6f9a
commit 31a66e2ce2

View File

@@ -677,6 +677,11 @@ function setConstant(url, code, input, entity, strict, forcereload, userid, toke
});
if (forcereload) {
var url = window.location.href;
/* reset action param */
url = url.replace(/action=\w+/g, '');
/* reset dol_resetcache param */
if (url.indexOf('dol_resetcache') < 0) {
if (url.indexOf('?') > -1) {
url = url + "&dol_resetcache=1";
@@ -684,6 +689,8 @@ function setConstant(url, code, input, entity, strict, forcereload, userid, toke
url = url + "?dol_resetcache=1";
}
}
/* reset page_y param */
var page_y = $(document).scrollTop();
url = url.replace(/page_y=\d+/g, '');
if (page_y > 0) {