Bugzilla – Attachment 15206 Details for
Bug 9469
Use Datatables in serials statistics wizard
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Signed-off patch
0001-Bug-9469-Use-Datatables-in-serials-statistics-wizard.patch (text/plain), 2.05 KB, created by
Frédéric Demians
on 2013-02-09 20:31:41 UTC
(
hide
)
Description:
Signed-off patch
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2013-02-09 20:31:41 UTC
Size:
2.05 KB
patch
obsolete
>From addb1d6e43eb4e678678b1d65872323da1bcd3a8 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 23 Jan 2013 14:35:03 -0500 >Subject: [PATCH] Bug 9469 - Use Datatables in serials statistics wizard >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Replace the tablesorter plugin with the DataTables plugin on the >serials staitsics wizard report. > >To test, run the serials statistics wizard (Reports -> Serials). Confirm >that table sorting works correctly. > >Signed-off-by: Frédéric Demians <f.demians@tamil.fr> > >Works with DataTables as it used to work with tablesorter. >--- > .../prog/en/modules/reports/serials_stats.tt | 15 ++++++++++----- > 1 files changed, 10 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/serials_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/serials_stats.tt >index 65f662f..47baf2c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/serials_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/serials_stats.tt >@@ -4,13 +4,18 @@ > <style type="text/css"> > .sql {display: none;} > </style> >-<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[ >+ [% IF (dateformat == 'metric') %]dt_add_type_uk_date();[% END %] > $(document).ready(function() { >- $("#resulttable").tablesorter({ >- widgets : ['zebra'] >- }); >+ $("#resulttable").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sDom": 't', >+ "bPaginate": false >+ })); > }); > //]]> > </script> >-- >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 9469
:
14802
|
15206
|
15225