Fix reposition do not add several times the page_y parameter.
This commit is contained in:
parent
1067d91f12
commit
f303e6664b
@ -198,7 +198,9 @@ print '
|
|||||||
{
|
{
|
||||||
if (this.href)
|
if (this.href)
|
||||||
{
|
{
|
||||||
|
console.log("We click on tag with .reposition class. this.ref was "+this.href);
|
||||||
var hrefarray = this.href.split("#", 2);
|
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;
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user