Bugzilla – Attachment 15120 Details for
Bug 9477
Use Datatables on notices page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9477 - Use DataTables on notices page
Bug-9477---Use-DataTables-on-notices-page.patch (text/plain), 2.32 KB, created by
Galen Charlton
on 2013-02-07 00:38:16 UTC
(
hide
)
Description:
Bug 9477 - Use DataTables on notices page
Filename:
MIME Type:
Creator:
Galen Charlton
Created:
2013-02-07 00:38:16 UTC
Size:
2.32 KB
patch
obsolete
>From f97018962f4a637f2f2bafde792314fddcb88baa Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 23 Jan 2013 20:50:31 -0500 >Subject: [PATCH] Bug 9477 - Use DataTables on notices page > >Replace the tablesorter plugin with the DataTables plugin on the >notices page. > >To test, open the notices page (Tools -> Notices and Slips). Confirm >that table sorting works correctly. > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >--- > .../intranet-tmpl/prog/en/modules/tools/letter.tt | 22 +++++++++++-------- > 1 files changed, 13 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >index c156e01..79455ae 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -1,16 +1,20 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Tools › Notices[% IF ( add_form ) %][% IF ( modify ) %] › Modify notice[% ELSE %] › Add notice[% END %][% END %][% IF ( add_validate ) %] › Notice added[% END %][% IF ( delete_confirm ) %] › Confirm deletion[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >- <script type="text/javascript"> >- //<![CDATA[ >+<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() { >- $("#lettert:has(tbody tr)").tablesorter({ >- widgets : ['zebra'], >- sortList: [[0,0]], >- headers: { 4: {sorter:false},5: { sorter: false },6: { sorter: false }} >- }); >- >+ $("#lettert:has(tbody tr)").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sDom": 't', >+ "aoColumnDefs": [ >+ { "aTargets": [ -1,-2, -3 ], "bSortable": false, "bSearchable": false } >+ ], >+ "bPaginate": false >+ })); > $('#branch').change(function() { > $('#op').val(""); > $('#selectlibrary').submit(); >-- >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 9477
:
14807
|
15120
|
15132