Bugzilla – Attachment 3155 Details for
Bug 5760
Add the jquery table sorter to borrowers reading record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0001-Bug-5760-MT3137-Adding-jquery.tablesorter-and-jquery.patch (text/plain), 3.29 KB, created by
Chris Cormack
on 2011-02-15 01:41:39 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-02-15 01:41:39 UTC
Size:
3.29 KB
patch
obsolete
>From 77b2220d82d1389f323743977dc955334a10ce10 Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Tue, 14 Dec 2010 22:28:48 +0100 >Subject: [PATCH] Bug 5760 : MT3137 : Adding jquery.tablesorter and jquery.tablesorter.pager support for readingrec.pl > >--- > .../prog/en/modules/members/readingrec.tmpl | 31 ++++++++++++++++++-- > 1 files changed, 28 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tmpl >index aa1bf22..a891feb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tmpl >@@ -1,6 +1,13 @@ > <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --> > <title>Reading Record for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></title> > <!-- TMPL_INCLUDE NAME="doc-head-close.inc" --> >+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script> >+<script type="text/javascript" id="js">$(document).ready(function() { >+ $("#table_readingrec").tablesorter({ >+ sortList: [[1,0]], >+ }).tablesorterPager({container: $("#pagertable_readingrec"),positionFixed: false,size: 20}); >+}); </script> > </head> > <body> > <!-- TMPL_INCLUDE NAME="header.inc" --> >@@ -19,8 +26,26 @@ > <p><!-- TMPL_IF NAME="showfulllink" -->Showing All Items | > <a href="readingrec.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->&limit=50">Show Last 50 Items Only</a> <!-- TMPL_ELSE --> Showing Last 50 Items | > <a href="readingrec.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->&limit=full">Show All Items</a><!-- /TMPL_IF --></p> >-<table> >-<tr> >+<span id="pagertable_readingrec" class="pager"> >+ <form class="formpager"> <strong>page(s)</strong> : >+ <img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/> >+ <img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/> >+ <input type="text" size="5" class="pagedisplay"/> >+ <img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/> >+ <img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/> >+ , entries/page : >+ <select class="pagesize"> >+ <option value="10">10</option> >+ <option selected="selected" value="20">20</option> >+ <option value="30">30</option> >+ <option value="40">40</option> >+ <option value="50">50</option> >+ <option value="100">100</option> >+ </select> >+ </form> >+</span> >+<table id="table_readingrec"> >+<thead> > <th> > <a href="readingrec.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->&order=issuestimestamp&limit=<!-- TMPL_VAR name="limit" -->">Date</a> > </th> >@@ -39,7 +64,7 @@ > <th> > <a href="readingrec.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->&order=returndate%20DESC&limit=<!-- TMPL_VAR name="limit" -->">Return Date</a> > </th> >-</tr> >+</thead> > <!-- TMPL_LOOP name="loop_reading" --> > <!-- TMPL_UNLESS NAME="__odd__" --> > <!-- TMPL_IF NAME="returndate" --><tr class="highlight"><!-- TMPL_ELSE --><tr class="highlight onissue"><!-- /TMPL_IF --> >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5760
: 3155 |
3160