Bugzilla – Attachment 15316 Details for
Bug 9460
Use DataTables on transfers to receive report page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9460 - Use DataTables on transfers to receive report page
Bug-9460---Use-DataTables-on-transfers-to-receive-.patch (text/plain), 2.69 KB, created by
Jonathan Druart
on 2013-02-14 13:35:07 UTC
(
hide
)
Description:
Bug 9460 - Use DataTables on transfers to receive report page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-02-14 13:35:07 UTC
Size:
2.69 KB
patch
obsolete
>From cb135aaad21944cfc37511c1c6f372bf497294e0 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 23 Jan 2013 11:18:09 -0500 >Subject: [PATCH] Bug 9460 - Use DataTables on transfers to receive report > page > >Replace the tablesorter plugin with the DataTables plugin on the >transfers to receive report page. > >To test, open the transfers to receive report page (Circulation -> >Transfers to receive). Confirm that table sorting works correctly on >each of the tables. In this configuration there is no filtering or >pagination. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > .../prog/en/modules/circ/transferstoreceive.tt | 29 ++++++++++---------- > 1 file changed, 15 insertions(+), 14 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt >index 6542ac3..9059f94 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt >@@ -1,23 +1,24 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Circulation › Transfers to your library</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() { > [% FOREACH branchesloo IN branchesloop %] >- $.tablesorter.defaults.widgets = ['zebra']; >- $("#transferst[% branchesloo.branchcode %]").tablesorter({[% IF ( dateformat_metric ) %] >- dateFormat: 'uk',[% END %] >- sortList: [[0,0]], >- headers: { 1: { sorter: 'articles' }} >- }); >+ $("#transferst[% branchesloo.branchcode %]").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, >+ ], >+ "sDom": 't', >+ "bPaginate": false >+ })); > [% END %] > }); > //]]> >-- >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 9460
:
14793
|
15183
| 15316