Bugzilla – Attachment 15317 Details for
Bug 9461
Use DataTables on holds awaiting pickup report page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9461 [Revised] Use DataTables on holds awaiting pickup report page
Bug-9461-Revised-Use-DataTables-on-holds-awaiting-.patch (text/plain), 2.90 KB, created by
Jonathan Druart
on 2013-02-14 13:42:49 UTC
(
hide
)
Description:
Bug 9461 [Revised] Use DataTables on holds awaiting pickup report page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-02-14 13:42:49 UTC
Size:
2.90 KB
patch
obsolete
>From 9343a9948df585c015343c90ed60442fcc858a85 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 23 Jan 2013 11:43:04 -0500 >Subject: [PATCH] Bug 9461 [Revised] Use DataTables on holds awaiting pickup > report page > >Replace the tablesorter plugin with the DataTables plugin on the >holds awaiting pickup report page. > >To test, open the holds awaiting pickup report (Circulation >-> Holds awaiting pickup). Confirm that table sorting works correctly on >all tables. > >Revision makes default result count (20) match options for number of >pagination entries (10,20,50,100,all). > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > .../prog/en/modules/circ/waitingreserves.tt | 30 +++++++++++--------- > 1 file changed, 16 insertions(+), 14 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt >index cb18a4a..62fd05b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt >@@ -1,24 +1,26 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Circulation › Holds awaiting pickup</title> > [% INCLUDE 'doc-head-close.inc' %] >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >-<script type="text/javascript" language="JavaScript"> >+<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" /> >+<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script> >+[% INCLUDE 'datatables-strings.inc' %] >+<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script> >+<script type="text/javascript"> > //<![CDATA[ >-$.tablesorter.addParser({ >- id: 'articles', >- is: function(s) {return false; }, >- format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, >- type: 'text' >-}); >+[% IF (dateformat == 'metric') %] >+dt_add_type_uk_date(); >+[% END %] > $(document).ready(function() { > $('#resultlist').tabs(); > $("th a").hide(); >- $.tablesorter.defaults.widgets = ['zebra']; >- $("#holdst,#holdso").tablesorter({[% IF ( dateformat == 'metric' ) %] >- dateFormat: 'uk',[% END %] >- sortList: [[3,0]], >- headers: { 1:{sorter:'articles'},3: { sorter: 'articles' },4:{sorter:false}} >- }); >+ $("#holdst,#holdso").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, >+ ], >+ "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], >+ "iDisplayLength": 20, >+ "sPaginationType": "four_button" >+ })); > }); > //]]> > </script> >-- >1.7.10.4
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 9461
:
14794
|
14858
|
15182
| 15317