From 2412574844894d69cc7300cd88154acdef1173d5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 8 Apr 2008 08:13:50 -0500 Subject: [PATCH] Completing table sort js integration for checkouts and holds. Signed-off-by: Joshua Ferraro --- .../prog/en/modules/circ/circulation.tmpl | 43 +++++++++---------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index dbd8985194..f3b23c7665 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -17,9 +17,16 @@ $.tablesorter.addParser({ $(document).ready(function() { $('#patronlists > ul').tabs(); $("#issuest").tablesorter({ - sortList: [[1,0]], - headers: { 1: { sorter: 'articles' },4:{sorter:false},5: { sorter: false },6:{sorter:false},7:{sorter:false}} - }); +// sortList: [[0,0]], don't sort by default to preserve 'previous checkouts header + headers: { 1: { sorter: 'articles' },4:{sorter:false},5: { sorter: false },6:{sorter:false}} + }); + $("#issuest").bind("sortEnd",function() { + $("#previous").parents("tr").remove(); + }); + $("#holdst").tablesorter({ + sortList: [[0,0]], + headers: { 1: { sorter: 'articles' }} + }); }); //]]> @@ -394,19 +401,15 @@ No patron matched - + - - &type=intra"> - , by - - - + &type=intra">, by - @@ -440,9 +443,7 @@ No patron matched - +Previous checkouts @@ -452,10 +453,7 @@ No patron matched - - &type=intra"> -
- - + &type=intra">
- @@ -507,21 +505,20 @@ No patron matched
- - +
+ - + + "> - + - +
Hold date Title Item Type Call Number Barcode Priority
- ">, by - ">, by Item @@ -538,7 +535,7 @@ No patron matched

Patron has no pending holds.

-- 2.39.2