Download & Extend

After load new content, the view scroll up to the first

Project:Views Load More
Version:6.x-3.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Hi guys,
I have a problem with drupal 6 + views 3 + Views Load More.
I installed and used it in a views with the use of Ajax.

When I click on the button "load more", the module loads the new rows. It attaches them in the grid and then a javascript scroll up the page to see the first result.

But The behaviour isn't correct! I should continue to scroll and see the new results, instead so I see again the first results and then the new results.. -.-"

This is the code of the page before:

<div class="view-content">
  <table class="views-view-grid col-4">
    <tbody>
      <tr class="row-1 row-first"> ..... </tr>
      <tr class="row-2 row-last"> ..... </tr>
    </tbody>
  </table>
</div>

And after push the button:

<div class="view-content">
  <table class="views-view-grid col-4">
    <tbody>
      <tr class="row-1 row-first"> ..... </tr>
      <tr class="row-2 row-last"> ..... </tr>
      <tr class="row-1 row-first"> ..... </tr>
      <tr class="row-2 row-last"> ..... </tr>
    </tbody>
  </table>
</div>

The module seems to have a problem with the correct class to assign to the rows.
It's possible that is correlated to my problem?

Best,
hachreak

Comments

#1

Status:active» closed (duplicate)

See: #1449930: Page scrolling to top everytime