mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 03:28:18 +01:00
Fix reposition do not add several times the page_y parameter.
This commit is contained in:
@@ -198,7 +198,9 @@ print '
|
||||
{
|
||||
if (this.href)
|
||||
{
|
||||
console.log("We click on tag with .reposition class. this.ref was "+this.href);
|
||||
var hrefarray = this.href.split("#", 2);
|
||||
hrefarray[0]=hrefarray[0].replace(/&page_y=(\d+)/, \'\'); /* remove page_y param if already present */
|
||||
this.href=hrefarray[0]+\'&page_y=\'+page_y;
|
||||
console.log("We click on tag with .reposition class. this.ref is now "+this.href);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user