2
0
forked from Wavyzz/dolibarr

FIX reposition was broken if url end with #anchor

This commit is contained in:
Laurent Destailleur
2020-07-06 22:26:19 +02:00
parent 415398fc66
commit 67c164df07

View File

@@ -184,7 +184,8 @@ print '
{ {
if (this.href) if (this.href)
{ {
this.href=this.href+\'&page_y=\'+page_y; var hrefarray = this.href.split("#", 2);
this.href=hrefarray[0]+\'&page_y=\'+page_y;
console.log("We click on tag with .reposition class. this.ref is now "+this.href); console.log("We click on tag with .reposition class. this.ref is now "+this.href);
} }
else else