Bug 6471: add tablesorter to Holds Queue
authorIan Walls <ian.walls@bywatersolutions.com>
Tue, 20 Sep 2011 13:22:46 +0000 (09:22 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Sun, 6 Nov 2011 09:47:48 +0000 (10:47 +0100)
This patch adds the table sorter to Holds Queue.  Sponsored by Farmington Public Library.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt

index f016158..e54529a 100644 (file)
@@ -7,6 +7,16 @@
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'cat-search.inc' %]
 
+<script type="text/javascript" src="[% ( themelang ) %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
+<script type="text/javascript">//<![CDATA[
+$(document).ready(function() {
+        $("#holdst").tablesorter({
+                sortList: [[6,0]],
+        });
+});
+//]]>
+</script>
+
 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a>
 &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
 &rsaquo; <a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds Queue</a>