Ajax pagination binding to the wrong view caused by two or more views on a page sharing the same 'dom-id-X' class.

In such case, additional classes (which are the same ones for backward compatibility) should be added to the selector for greater specificity:

      else if ($(view).size() > 1) {
        view += '.view-id-' + settings.view_name + '.view-display-id-' + settings.view_display_id;
      }

Obviously, above will not work if the the two views sharing the same dom id that are of the same view and display.

Although a fall back solution, this doesn't solve the main issue: duplicate dom id. See issue: http://drupal.org/node/873944

CommentFileSizeAuthor
ajax_view.patch495 bytesronnbot

Comments

dawehner’s picture

Status: Active » Needs review

update status. The other issue is a duplicate of yet another issue :) So this issue might be fixed already?

merlinofchaos’s picture

Status: Needs review » Needs work

I think this may actually still be a bit of a problem, but this is definitely not the right fix. We need to fix the dom IDs so they don't actually dup.

yuriy.babenko’s picture

Version: 6.x-2.11 » 6.x-2.12

Still a problem in 6.x-2.12.

couturier’s picture

Status: Needs work » Closed (won't fix)

This issue is so old, and most people are working in D7 now, with a D8 release less than a year away, so I am closing.