Bugzilla – Attachment 14804 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.62 KB, created by
Owen Leonard
on 2013-01-23 21:07:39 UTC
(
hide
)
Description:
Bug 9473 - Use DataTables on tags list page
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-01-23 21:07:39 UTC
Size:
2.62 KB
patch
obsolete
>From 65cacbdbac1a667fd0004165c6f6db2b293e9b47 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 >Content-Type: text/plain; charset="utf-8" > >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. >--- > .../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..390b7ae 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, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], >+ "iDisplayLength": 20, >+ "sPaginationType": "four_button" >+ })); > }); > //]]> > </script> >-- >1.7.9.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 9473
:
14804
|
14857
|
15122
|
15133