[Koha-patches] [PATCH] Bug 9464 - Update DataTables configuration on patron statistics page

Owen Leonard oleonard at myacpl.org
Wed Jan 23 18:45:17 CET 2013


This page removes an unnecessary link to the old tablesorter plugin and
changes the configuration details of the DataTables plugin so that an
empty filter box doesn't appear as dot above and below the table (an
empty <div> with a 1-pixel border).

To test, open the patron statistics page for a patron who has entries to
display. Sorting should work normally and no dots should be seen.
---
 .../prog/en/modules/members/statistics.tt          |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt
index 3ff663c..22d6284 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt
@@ -12,14 +12,12 @@
 [% INCLUDE 'datatables-strings.inc' %]
 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
 [% INCLUDE 'calendar.inc' %]
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
 <script type="text/javascript">
     $(document).ready(function() {
         $("#statistics").dataTable($.extend(true, {}, dataTablesDefaults, {
-            'bPaginate': false,
-            'bFilter': false,
-            'bInfo': false,
-        } ));
+            "sDom": 't',
+            "bPaginate": false
+        }));
     });
 </script>
 </head>
-- 
1.7.9.5


More information about the Koha-patches mailing list