Bugzilla – Attachment 14864 Details for
Bug 9483
Use DataTables on batch patron modifications page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[Passed QA] Bug 9483 - Use DataTables on batch patron modifications page
Passed-QA-Bug-9483---Use-DataTables-on-batch-patro.patch (text/plain), 2.65 KB, created by
Elliott Davis
on 2013-01-25 15:32:16 UTC
(
hide
)
Description:
[Passed QA] Bug 9483 - Use DataTables on batch patron modifications page
Filename:
MIME Type:
Creator:
Elliott Davis
Created:
2013-01-25 15:32:16 UTC
Size:
2.65 KB
patch
obsolete
>From f81e3f5f61b2a2f6a219bd9740dbf003788dfa0a Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 24 Jan 2013 10:56:02 -0500 >Subject: [PATCH] [Passed QA] Bug 9483 - Use DataTables on batch patron modifications page > >Replace the tablesorter plugin with the DataTables plugin on the >batch patron modifications page. > >To test, submit multiple patron barcodes for batch modification >(Tools -> Batch patron modification). Confirm that table sorting >works correctly. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Signed-off-by: Elliott Davis <elliott@bywatersolions.com> >--- > .../prog/en/modules/tools/modborrowers.tt | 21 ++++++++++++------- > 1 files changed, 13 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >index 62d2eb3..3a04aa2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >@@ -3,19 +3,24 @@ > <title>Koha › Tools › Batch patron modification</title> > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'calendar.inc' %] >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >-<script type="text/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[ >+ [% IF (dateformat == 'metric') %]dt_add_type_uk_date();[% END %] > var patron_attributes_lib = new Array(); > var patron_attributes_values = new Array(); > $(document).ready(function() { > [% IF borrowers %] >- $("#borrowerst").tablesorter({ >- headers: { 0: { sorter: false}}, >- widgets : ['zebra'], >- sortList: [[1,0]] >- }); >- >+ $("#borrowerst").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sDom": 't', >+ "aoColumnDefs": [ >+ { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false } >+ ], >+ "bPaginate": false >+ })); > $("#selectallbutton").click(function() { > $("#borrowerst").find("input:checkbox").each(function() { > $(this).attr("checked", true); >-- >1.7.2.5
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 9483
:
14823
|
14825
| 14864