Bugzilla – Attachment 15133 Details for
Bug 9473
Use DataTables on tags list page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9473: Use DataTables on tags list page
Bug-9473-Use-DataTables-on-tags-list-page.patch (text/plain), 2.80 KB, created by
Jonathan Druart
on 2013-02-07 11:14:24 UTC
(
hide
)
Description:
Bug 9473: Use DataTables on tags list page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-02-07 11:14:24 UTC
Size:
2.80 KB
patch
obsolete
>From 7e6c11384251f7333be48f43c665820348f469d7 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 23 Jan 2013 16:04:39 -0500 >Subject: [PATCH] Bug 9473: Use DataTables on tags list page > >Replace the tablesorter plugin with the DataTables plugin on the tags >list page. > >To test, got to tags moderation and click on a term which tags >multiple titles. On the tags list page, confirm that table sorting works >correctly. > >Revision makes default result count (20) match options for number of >pagination entries (10,20,50,100,all). > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > .../intranet-tmpl/prog/en/modules/tags/list.tt | 24 +++++++++++--------- > 1 file changed, 13 insertions(+), 11 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt >index e9c683a..f0d70be 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt >@@ -1,15 +1,12 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Tools › Tags › [% IF ( do_it ) %]Review › [% ELSE %]Review tags[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >+<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[ >- $.tablesorter.addParser({ >- id: 'articles', >- is: function(s) {return false; }, >- format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, >- type: 'text' >- }); > $(document).ready(function() { > $(".delete").click(function (event) { > $(this).parent().parent().parent().addClass("selected"); >@@ -19,10 +16,15 @@ > event.preventDefault(); > } > }); >- $("#itemst").tablesorter({ >- sortList: [[0,0]], >- headers: { 0: { sorter: 'articles' },1: { sorter: false },2:{sorter:false}} >- }); >+ $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, >+ ], >+ "aaSorting": [[ 0, "asc" ]], >+ "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], >+ "iDisplayLength": 20, >+ "sPaginationType": "four_button" >+ })); > }); > //]]> > </script> >-- >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 9473
:
14804
|
14857
|
15122
| 15133