Bugzilla – Attachment 15700 Details for
Bug 9445
Use DataTables in local use system preferences editor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9445 [Revised] Use DataTables in local use system preferences editor
Bug-9445-Revised-Use-DataTables-in-local-use-syste.patch (text/plain), 2.60 KB, created by
Owen Leonard
on 2013-02-26 16:26:34 UTC
(
hide
)
Description:
Bug 9445 [Revised] Use DataTables in local use system preferences editor
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-02-26 16:26:34 UTC
Size:
2.60 KB
patch
obsolete
>From 11efb7d8fc3d197811e637d2ebd4b4a43385de06 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 22 Jan 2013 12:37:08 -0500 >Subject: [PATCH] Bug 9445 [Revised] Use DataTables in local use system > preferences editor >Content-Type: text/plain; charset="utf-8" > >Replace the tablesorter plugin with the DataTables plugin in the >local use system preferences editor. > >This patch moves embedding of the toolbar and table-sorting JS from >within the body of the page to the <head> for sake of consistency. > >To test, open the system preferences editor to the Local Use tab. >Confirm that table sorting works correctly. In this configuration there >should be no pager and no results filtering. > >Revision corrects template path to datatables assets. >--- > .../prog/en/modules/admin/systempreferences.tt | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt >index 51e7b8e..06f50d6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tt >@@ -2,6 +2,24 @@ > <title>Koha › Administration › [% IF ( add_form ) %] System preferences › [% IF ( modify ) %]Modify system preference '[% searchfield %]'[% ELSE %]Add a system preference[% END %][% END %][% IF ( add_validate ) %] System preferences › Data added[% END %] > [% IF ( delete_confirm ) %] System preferences › [% searchfield %] › Confirm deletion of parameter '[% searchfield %]'[% END %][% IF ( delete_confirmed ) %] System preferences › Parameter deleted[% END %][% IF ( else ) %]System preferences[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >+[% IF ( else ) %] >+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> >+<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> >+[% INCLUDE 'datatables-strings.inc' %] >+<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> >+<script type="text/javascript"> >+ //<![CDATA[ >+ $(document).ready(function() { >+ [% IF ( loop ) %]$("#sysprefst").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sDom": 't', >+ "aoColumnDefs": [ >+ { "aTargets": [ -1, -2, -3, -4 ], "bSortable": false, "bSearchable": false } >+ ], >+ "bPaginate": false >+ }));[% END %] >+ }); >+</script> >+[% END %] > <script type="text/javascript"> > //<![CDATA[ > [% IF ( add_form ) %] >-- >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 9445
:
14755
|
14771
|
15700
|
15744
|
15775
|
15810