Entire page refreshes when clicking 'Previous Results' using MorePager #1314

Csabbencs opened this Issue Mar 6, 2012 · 0 comments


None yet

2 participants


On a page of results, first, you have only 'More Results' link.
When you click on it, the view refreshes and a new set of results is appended (entire page not reloaded), you have both 'More Results' and 'Previous Results' link.
Then, when clicking 'Previous Results' link, the entire page is reloaded instead of refreshing only the view.

The cause of it is that the element containing the "less" link is not binded to the page by javasrcipt on the first page, thus, it will not be binded on more pages either.

A possible solution is returning both 'more' and 'less' links always, setting their container 'hidden' when it is necessary.
Therefore, I recommend the following changes in dashboard/modules/class.morepagermodule.php:

  1. Add this line to the constructor method:
    $this->CssHiddenClass = 'MorePager Hidden';
  2. Change returning value of function ToString when pager is should be empty:
    if ($Pager == '') // return $this->PagerEmpty; //delete this line return sprintf($this->Wrapper, Attribute(array('id' => $ClientID, 'class' => $this->CssHiddenClass)), $Pager); //add this line

Please fix.

@linc linc was assigned Nov 24, 2012
@linc linc closed this Apr 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment