From 13a90278e056c1d03f22badb9873681a81d38b3f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 22 Jan 2013 12:37:08 -0500 Subject: [PATCH] Bug 9445 [Revised] Use DataTables in local use system preferences editor Content-Type: text/plain; charset="utf-8" Replace the tablesorter plugin with the DataTables plugin in the local use system preferences editor. This patch moves embedding of the toolbar and table-sorting JS from within the body of the page to the for sake of consistency. To test, open the system preferences editor to the Local Use tab. Confirm that table sorting works correctly. In this configuration there should be no pager and no results filtering. Revision corrects template path to datatables assets. Signed-off-by: Bernardo Gonzalez Kriegel Comment: Tab sorting works. No errors. Signed-off-by: Jonathan Druart Further revision removes old tablesorter code --- .../prog/en/modules/admin/systempreferences.tt | 30 ++++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt index 51e7b8e..c26cbd8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt @@ -2,6 +2,24 @@ Koha › Administration › [% IF ( add_form ) %] System preferences › [% IF ( modify ) %]Modify system preference '[% searchfield %]'[% ELSE %]Add a system preference[% END %][% END %][% IF ( add_validate ) %] System preferences › Data added[% END %] [% IF ( delete_confirm ) %] System preferences › [% searchfield %] › Confirm deletion of parameter '[% searchfield %]'[% END %][% IF ( delete_confirmed ) %] System preferences › Parameter deleted[% END %][% IF ( else ) %]System preferences[% END %] [% INCLUDE 'doc-head-close.inc' %] +[% IF ( else ) %] + + +[% INCLUDE 'datatables-strings.inc' %] + + +[% END %] -[% IF ( else ) %] - - -[% END %] [% INCLUDE 'header.inc' %] -- 1.7.9.5