Bugzilla – Attachment 14769 Details for
Bug 9443
Use DataTables on MARC frameworks administration page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9443 - Use DataTables on MARC frameworks administration page
Bug-9443---Use-DataTables-on-MARC-frameworks-admin.patch (text/plain), 2.86 KB, created by
Jonathan Druart
on 2013-01-23 08:33:11 UTC
(
hide
)
Description:
Bug 9443 - Use DataTables on MARC frameworks administration page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-01-23 08:33:11 UTC
Size:
2.86 KB
patch
obsolete
>From 57a738616365a02fc186427e5e4062b1bcc60c72 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 22 Jan 2013 11:00:13 -0500 >Subject: [PATCH] Bug 9443 - Use DataTables on MARC frameworks administration > page > >Replace the tablesorter plugin with the DataTables plugin on the >MARC frameworks administration page. > >To test, open the MARC frameworks dministration page (Administration -> >MARC bibliographic framework -> MARC structure). Confirm that table >sorting works correctly. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Amended patch: Add the "All" entry. >--- > .../prog/en/modules/admin/marctagstructure.tt | 21 +++++++++++--------- > 1 file changed, 12 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >index d0f0132..e3ab6fe 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >@@ -5,14 +5,10 @@ > [% IF ( delete_confirmed ) %]MARC frameworks › Data deleted[% END %] > [% IF ( else ) %]MARC frameworks[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script> >-<script type="text/javascript" id="js">$(document).ready(function() { >- $("#table_marctagstructure").tablesorter({ >- sortList: [[0,0]], >- headers: { 5: { sorter: false},6: { sorter: false},7: { sorter: false}} >- }).tablesorterPager({container: $("#pagertable_marctagstructure"),positionFixed: false,size: 20}); >-}); </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[ > function Check(f) { >@@ -33,6 +29,14 @@ function Check(f) { > > $(document).ready(function() { > new YAHOO.widget.Button("addtag"); >+ $("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, >+ ], >+ "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], >+ "iDisplayLength": 20, >+ "sPaginationType": "four_button" >+ })); > }); > //]]> > </script> >@@ -158,7 +162,6 @@ $(document).ready(function() { > </fieldset> > </form> > <div id="pagertable_marctagstructure"> >-[% INCLUDE 'table-pager.inc' perpage='20' %] > </div> > <table id="table_marctagstructure"> > <thead> >-- >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 9443
:
14752
|
14769
|
14885
|
15688
|
16556
|
16574
|
17077