Fix reposition do not add several times the page_y parameter.
This commit is contained in:
parent
1067d91f12
commit
f303e6664b
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue