From b12644013d8b57a300f05b64bb444bb65f5a4e61 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 Content-Type: text/plain; charset="utf-8" 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. --- .../prog/en/modules/admin/branches.tt | 30 +++++++++++++------- 1 file changed, 19 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..bb70cc0 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,22 @@ [% END %] [% INCLUDE 'doc-head-close.inc' %] - - + + +[% INCLUDE 'datatables-strings.inc' %] + - @@ -66,12 +79,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 +197,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 +206,8 @@ tinyMCE.init({ - + + [% FOREACH branche IN branches %] [% IF ( loop.odd ) %] -- 1.7.10.4
Properties IP