Bugzilla – Attachment 15178 Details for
Bug 9467
Use DataTables on catalog by item type report page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9467 - Use DataTables on catalog by item type report page
Bug-9467---Use-DataTables-on-catalog-by-item-type-.patch (text/plain), 1.91 KB, created by
Kyle M Hall (khall)
on 2013-02-08 17:12:01 UTC
(
hide
)
Description:
Bug 9467 - Use DataTables on catalog by item type report page
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-02-08 17:12:01 UTC
Size:
1.91 KB
patch
obsolete
>From a22644d7a9aaffdb58c010eb93f3afcbf3fe469b Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 23 Jan 2013 14:21:49 -0500 >Subject: [PATCH] Bug 9467 - Use DataTables on catalog by item type report page > >Replace the tablesorter plugin with the DataTables plugin on the >catalog by item type report page. > >To test, run the catalog by item type report (Reports -> Catalog by >item type). Confirm that table sorting works correctly. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../prog/en/modules/reports/itemtypes.tt | 14 +++++++++++--- > 1 files changed, 11 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt >index 6a30dc9..e18ad3e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt >@@ -1,14 +1,22 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Reports › Catalog by item types</title> > [% INCLUDE 'doc-head-close.inc' %] >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >+[% IF ( do_it ) %] >+<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() { >- $("#itemtypest").tablesorter(); >+$(document).ready(function(){ >+ $("#itemtypest").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sDom": 't', >+ "bPaginate": false >+ })); > }); > //]]> > </script> >+[% END %] > </head> > <body id="rep_itemtypes" class="rep"> > [% INCLUDE 'header.inc' %] >-- >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 9467
:
14800
|
15178
|
15319