·   · 8 posts
  •  · 34 friends

How to scroll after paginate

go to /inc/classes/BxDolPaginate.php

change this:


   protected function _getPageChangeOnClick($aReplacement)
    {
        return !empty($this->_sOnChangePage) ? 'onclick="javascript:' . $this->_oTemplate->parseHtmlByContent($this->_sOnChangePage, $aReplacement, array('{', '}')) . '; return false;"' : '';
    }

to this:

protected function _getPageChangeOnClick($aReplacement)
    {
        return !empty($this->_sOnChangePage) ? 'onclick="javascript:scorlly();' . $this->_oTemplate->parseHtmlByContent($this->_sOnChangePage, $aReplacement, array('{', '}')) . '; return false;"' : '';
    }


go to studio->designer>injection and add this to the head:

 *add script tag surround (cant do it here)

 function scorlly(){
  $("html, body").animate({ scrollTop: 300 }, "slow");
  return false;
  }
💓0 😆0 😲0 😥0 😠0 0
  • 485
  • More
Comments (0)
    Share
    Category:
    Created:
    Updated:
    Featured Posts

    UNA - Network Infrastructure for Communities

    Close