From f94c6cffa8ede543dfc6f4e0aef54cb2126a40bb Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 18 Jan 2013 14:55:59 -0500 Subject: [PATCH] Bug 9430 [Revised] Use DataTables on library transfer limits page Replace the tablesorter plugin with the DataTables plugin on the library transfer limits page. Also made minor changes to "check/uncheck all" function to prevent page from jumping on click, and removed unused function. To test, open the library transfer limits page (Administration -> Library transfer limits). Confirm that table sorting works correctly for all tables. Test that the "check all/uncheck all" links still work correctly. Revision corrects template path to datatables assets. Signed-off-by: Bernardo Gonzalez Kriegel Comment: Work as described. No errors. Signed-off-by: Jonathan Druart Amended patch: Add the aLengthMenu key for DataTables + delete an unused div block (used for pager) Signed-off-by: Jared Camins-Esakov --- .../modules/admin/branch_transfer_limits.tt | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt index 1c2a7acecd..04e4aed654 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt @@ -1,15 +1,16 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Administration › Library checkin and transfer policy [% INCLUDE 'doc-head-close.inc' %] - - + + +[% INCLUDE 'datatables-strings.inc' %] + - + [% INCLUDE 'header.inc' %] @@ -84,9 +89,6 @@

Policy for [% codes_loo.limit_phrase %]: [% codes_loo.code %]

Check all | Uncheck all

-
- [% INCLUDE 'table-pager.inc' perpage='20' %] -
-- 2.39.5