on ne supprime plus &_id dans l'url + correction du nombre par page
This commit is contained in:
parent
1fa801ce92
commit
cf783af2fd
2 changed files with 8 additions and 10 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue