From 61590435c0a0d917c14c77e9891709a2b4f559ad Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 19 Jan 2013 19:00:34 -0500 Subject: [PATCH] Bug 9435 - Use DataTables on libraries and groups administration page Replace the tablesorter plugin with the DataTables plugin on the libraries and groups administration page. To test, open the libraries and groups administration page (Administration -> Libraries and groups). Confirm that table sorting works correctly. Signed-off-by: Jonathan Druart Amended patch: Add the "All" entry. --- .../prog/en/modules/admin/branches.tt | 31 +++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt index 15e8064..b5b3204 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -11,10 +11,23 @@ [% END %] [% INCLUDE 'doc-head-close.inc' %] - - + + +[% INCLUDE 'datatables-strings.inc' %] + - @@ -66,12 +80,7 @@ tinyMCE.init({ $(document).ready(function() { yuiToolbar(); - $.tablesorter.defaults.widgets = ['zebra']; - $("#branchest").tablesorter({ - sortList: [[0,0]], - headers: { 3:{sorter:false},4:{sorter:false},5:{sorter:false},6:{sorter:false}} - }).tablesorterPager({container: $("#pagerbranchest"),positionFixed: false,size: 10}); - }); + }); // YUI Toolbar Functions function yuiToolbar() { @@ -189,7 +198,6 @@ tinyMCE.init({ [% IF ( MESSAGE11 ) %]
Library cannot be deleted because there are patrons registered at that library
[% END %] [% IF ( branches ) %]
-[% INCLUDE 'table-pager.inc' perpage='10' %]
@@ -199,7 +207,8 @@ tinyMCE.init({ - + + [% FOREACH branche IN branches %] [% IF ( loop.odd ) %] -- 1.7.10.4
Properties IP