Bug 11205: fix DataTables filter issue when more than one table is on a page
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 5 Nov 2013 17:07:56 +0000 (18:07 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Sat, 9 Nov 2013 16:28:52 +0000 (16:28 +0000)
commit6e7d8ece1fd8ee476cc9c83092cd770b0897bb58
tree48adfd9809e872af83086e676a2454192d54b840
parenta1d4af3d73bacd552fa7411e29b4963c9350ea20
Bug 11205: fix DataTables filter issue when more than one table is on a page

This patch fixes a bug where if there are more than one table on the
same page that uses the DataTables column filter, applying a filter on
one table applied it to both.

Test plan:
1/ Go on serials/serials-search.pl?searched=1
2/ Filter on a column (e.g., title) on the open subscriptions
   table.
3/ Switch to the closed subscriptions table.  Observe that
   that the table is *also* filtered by the criteria
   set for the open subscriptions table.
4/ Apply the patch and reload the page.
5/ This time, applying a filter on one time should not affect
   the other table.

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js