Bugzilla – Attachment 15131 Details for
Bug 9476
Use Datatables on Koha news page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9476: Use Datatables on Koha news page
Bug-9476-Use-Datatables-on-Koha-news-page.patch (text/plain), 2.67 KB, created by
Jonathan Druart
on 2013-02-07 11:00:41 UTC
(
hide
)
Description:
Bug 9476: Use Datatables on Koha news page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-02-07 11:00:41 UTC
Size:
2.67 KB
patch
obsolete
>From 27ec7d2ba502f24278c112694ba4680c869226d8 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 23 Jan 2013 20:40:36 -0500 >Subject: [PATCH] Bug 9476: Use Datatables on Koha news page > >Replace the tablesorter plugin with the DataTables plugin on the >Koha news page. > >To test, open the Koha news page (Tools -> News). Confirm that table sorting >works correctly. > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > .../prog/en/modules/tools/koha-news.tt | 33 +++++++++++++------- > 1 file changed, 21 insertions(+), 12 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt >index 52abae0..195dcef 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt >@@ -2,19 +2,27 @@ > <title>Koha › Tools › News</title> > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'calendar.inc' %] >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >-<script type="text/javascript">//<![CDATA[ >-$(document).ready(function() { >- $("#newst").tablesorter({[% IF ( dateformat == 'metric' ) %] >- dateFormat: 'uk',[% END %] >- sortList: [[2,0]], >- headers: { 0: {sorter:false},6: { sorter: false },7: { sorter: false }} >- }); >-}); >-//]]> >-</script> >+[% IF ( opac_news_count ) %] >+ <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() { >+ $("#newst").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sDom": 't', >+ "aoColumnDefs": [ >+ { "aTargets": [ 0,-1,-2 ], "bSortable": false, "bSearchable": false } >+ ], >+ "bPaginate": false >+ })); >+ }); >+ //]]> >+ </script> >+[% END %] > <script type="text/javascript" src="[% themelang %]/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> >-<script type="text/javascript"> >+<script type="text/javascript">//<![CDATA[ > tinyMCE.init({ > mode : "textareas", > theme : "advanced", >@@ -32,6 +40,7 @@ tinyMCE.init({ > apply_source_formatting : true, > height : "300", > width : "700" >+//]]> > }); > </script> > </head> >-- >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 9476
:
14806
|
15099
|
15109
|
15113
| 15131