Bugzilla – Attachment 15179 Details for
Bug 9465
Use DataTables on update child to adult patron page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9465 - Use DataTables on update child to adult patron page
Bug-9465---Use-DataTables-on-update-child-to-adult.patch (text/plain), 2.19 KB, created by
Kyle M Hall (khall)
on 2013-02-08 17:15:54 UTC
(
hide
)
Description:
Bug 9465 - Use DataTables on update child to adult patron page
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-02-08 17:15:54 UTC
Size:
2.19 KB
patch
obsolete
>From 6fb312f542bfc15a0d9390e74879eccf87ee526e Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 23 Jan 2013 12:53:33 -0500 >Subject: [PATCH] Bug 9465 - Use DataTables on update child to adult patron page > >Replace the tablesorter plugin with the DataTables plugin on the >update child to adult patron page. > >Added default sort by patron category description (ascending). > >To test, open a patron with a child category type. Choose the 'Update >child to adult patron' item from the 'More' menu. Confirm that >table sorting works correctly in the popup. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../prog/en/modules/members/update-child.tt | 18 ++++++++++++------ > 1 files changed, 12 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/update-child.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/update-child.tt >index 5d0e32f..3eb8fe5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/update-child.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/update-child.tt >@@ -1,14 +1,20 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Choose Adult category</title> > [% INCLUDE 'doc-head-close.inc' %] >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >+<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"> > $(document).ready(function() { >- $.tablesorter.defaults.widgets = ['zebra']; >- $("#catst").tablesorter({ >- sortList: [[2,0]], >- headers: { 0: { sorter: false }} >- }); >+ $("#catst").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sDom": 't', >+ "aaSorting": [[ 2, "asc" ]], >+ "aoColumnDefs": [ >+ { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false } >+ ], >+ "bPaginate": false >+ })); > }); > </script> > <style type="text/css"> >-- >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 9465
:
14798
|
15179
|
15318