Bugzilla – Attachment 14796 Details for
Bug 9463
Use DataTables on patron sent notices page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9463 - Use DataTables on patron sent notices page
Bug-9463---Use-DataTables-on-patron-sent-notices-p.patch (text/plain), 2.12 KB, created by
Owen Leonard
on 2013-01-23 17:28:21 UTC
(
hide
)
Description:
Bug 9463 - Use DataTables on patron sent notices page
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-01-23 17:28:21 UTC
Size:
2.12 KB
patch
obsolete
>From 0b0273c7b53b19d9162d8cee261740b5d0b41c1f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 23 Jan 2013 12:25:39 -0500 >Subject: [PATCH] Bug 9463 - Use DataTables on patron sent notices page >Content-Type: text/plain; charset="utf-8" > >Replace the tablesorter plugin with the DataTables plugin on the >patron sent notices page. > >This patch adds default sorting by time (descending). > >To test, open the sent notices page for a patron who has multiple sent >notices. Confirm that table sorting works correctly. >--- > .../prog/en/modules/members/notices.tt | 18 +++++++++++------- > 1 file changed, 11 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >index 445ed17..78131b4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt >@@ -1,15 +1,19 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Sent notices for [% INCLUDE 'patron-title.inc' %]</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[ > $(document).ready(function() { >- $("#noticestable").tablesorter({ >- [% IF ( dateformat == 'metric' ) %] >- dateFormat: 'uk' >- [% END %] >- }); >+ $("#noticestable").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aaSorting": [[ 3, "desc" ]], >+ "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], >+ "iDisplayLength": 20, >+ "sPaginationType": "four_button" >+ })); > > $(".message").hide(); > $(".message-title").click(function(e){ >-- >1.7.9.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 9463
:
14796
|
14810
|
14886
|
15686
|
17081
|
17100
|
17111
|
17226
|
17227
|
17287
|
17397
|
17440