Bugzilla – Attachment 25152 Details for
Bug 11721
Use new DataTables include in suggestions template
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11721 - Use new DataTables include in suggestions template
Bug-11721---Use-new-DataTables-include-in-suggesti.patch (text/plain), 2.04 KB, created by
Owen Leonard
on 2014-02-07 21:05:44 UTC
(
hide
)
Description:
Bug 11721 - Use new DataTables include in suggestions template
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2014-02-07 21:05:44 UTC
Size:
2.04 KB
patch
obsolete
>From 8ebe7a3ec1140f4e677148f8fb6f221d494c532d Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 7 Feb 2014 16:02:06 -0500 >Subject: [PATCH] Bug 11721 - Use new DataTables include in suggestions > template >Content-Type: text/plain; charset="utf-8" > >This patch modifies the template for the suggestions page to use >the new DataTables include. This simplifies the inclusion of assets and >updates to the latest DataTables version. > >Sorting is now configured to exclude articles when sorting the title >column. > >To test, apply the patch and view the suggestions page (Acquisitions -> >Suggestions). Sorting of suggestions should work correctly. >--- > .../prog/en/modules/suggestion/suggestion.tt | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >index cd5b958..2f1cfb0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >@@ -29,9 +29,7 @@ > [% END %] > [% IF ( op_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> >+[% INCLUDE 'datatables.inc' %] > <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> > <script type="text/javascript"> > // <![CDATA[ >@@ -58,6 +56,9 @@ $(document).ready(function() { > "aoColumnDefs": [ > { "aTargets": [ 0, -1, -2 ], "bSortable": false, "bSearchable": false }, > ], >+ "aoColumns": [ >+ null,{ "sType": "anti-the" },null,null,null,null,null >+ ], > "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], > "iDisplayLength": 20, > "sPaginationType": "four_button" >-- >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 11721
:
25152
|
25153
|
25157