diff --git a/js/gamutable.es6.js b/js/gamutable.es6.js index b4bf5b1..83837af 100644 --- a/js/gamutable.es6.js +++ b/js/gamutable.es6.js @@ -490,7 +490,7 @@ let monTableau = { this.chargement = false; if (parseInt(this._id) > 0) { let _id = parseInt(this._id); - let parPage = parseInt(this.tparpage[0]); + let parPage = parseInt(this.parPage); if (parseInt(parPage)) { let ordre = 0; Object.values(this.table).forEach((d, i) => { @@ -504,9 +504,9 @@ let monTableau = { } } this.selectLigne(_id, 'id'); - let url = new URL(window.location); - url = url.href.replace('&_id=' + _id, ''); - history.pushState({}, null, url); + // let url = new URL(window.location); + // url = url.href.replace('&_id=' + _id, ''); + // history.pushState({}, null, url); } if (this.nomblocajaxreload) { diff --git a/js/gamutable.js b/js/gamutable.js index d8c2de7..675d721 100644 --- a/js/gamutable.js +++ b/js/gamutable.js @@ -568,7 +568,7 @@ var monTableau = { if (parseInt(_this4._id) > 0) { var _id = parseInt(_this4._id); - var parPage = parseInt(_this4.tparpage[0]); + var parPage = parseInt(_this4.parPage); if (parseInt(parPage)) { var ordre = 0; @@ -584,12 +584,10 @@ var monTableau = { } } - _this4.selectLigne(_id, 'id'); + _this4.selectLigne(_id, 'id'); // let url = new URL(window.location); + // url = url.href.replace('&_id=' + _id, ''); + // history.pushState({}, null, url); - var _url = new URL(window.location); - - _url = _url.href.replace('&_id=' + _id, ''); - history.pushState({}, null, _url); } if (_this4.nomblocajaxreload) {