If multiple tables with the tablesorter class exist on the same page then the sorter will not work properly on any of them. This is because the jQuery references to the tables in tablesortervar.js are ambiguous.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

OliverColeman created an issue. See original summary.

OliverColeman’s picture

monymirza’s picture

Status: Active » Patch (to be ported)
joelpittet’s picture

Status: Patch (to be ported) » Needs review

Patch (to be ported) is really to backport https://www.drupal.org/node/156119#patch-to-be-ported

dinarcon’s picture

Thanks @OliverColeman, your patches worked! The patch uses the Drupal root directory as base for the path. Usually, patches are created from the module directory instead. See https://www.drupal.org/node/707484 I have added a new patch using the module directory as a base for the path.

joelpittet’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

This seemed to fix the problem for me. Thanks @dinarcon and @OliverColeman

lolandese’s picture

RTBC also from me. Can this please be committed and merged? Thanks.

  • monymirza committed 0332cb1 on 7.x-1.x
    Issue #2716277 by OliverColeman, dinarcon: Multiple tables on same page...
monymirza’s picture

Status: Reviewed & tested by the community » Fixed
monymirza’s picture

Status: Fixed » Closed (fixed)