Bugzilla – Attachment 15132 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.86 KB, created by
Jonathan Druart
on 2013-02-07 11:07:49 UTC
(
hide
)
Description:
Bug 9477 - Use DataTables on notices page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-02-07 11:07:49 UTC
Size:
2.86 KB
patch
obsolete
>From f4721aae157d836fe4dc78d07613744c5c0fa038 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> >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Amended patch: add the no-wrap style in order to keep the same display >as before. >--- > .../intranet-tmpl/prog/en/modules/tools/letter.tt | 24 ++++++++++++-------- > 1 file changed, 14 insertions(+), 10 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..e095bdc 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(); >@@ -184,7 +188,7 @@ $(document).ready(function() { > <td>[% lette.module %]</td> > <td>[% lette.code %]</td> > <td>[% lette.name %]</td> >- <td> >+ <td style="white-space: nowrap"> > [% IF !independant_branch || !lette.branchcode %] > <form method="post" action="/cgi-bin/koha/tools/letter.pl"> > <input type="hidden" name="op" value="copy" /> >-- >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 9477
:
14807
|
15120
| 15132