Bugzilla – Attachment 19877 Details for
Bug 10634
Use datatables for course details items table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10634 - Use datatables for course details items table
Bug-10634---Use-datatables-for-course-details-item.patch (text/plain), 2.20 KB, created by
Kyle M Hall (khall)
on 2013-07-23 16:40:22 UTC
(
hide
)
Description:
Bug 10634 - Use datatables for course details items table
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-07-23 16:40:22 UTC
Size:
2.20 KB
patch
obsolete
>From 4945a8163a03c1c8d0962b638fd13d20fffddd3d Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 23 Jul 2013 12:39:03 -0400 >Subject: [PATCH] Bug 10634 - Use datatables for course details items table > >We should make the course items table in the course details a datatable >to enable searching or sorting. > >Test Plan: >1) Apply this patch >2) View the details page for a course with items >3) Verify the table displays and is now a datatable >--- > .../en/modules/course_reserves/course-details.tt | 15 ++++++++++++++- > 1 files changed, 14 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >index 08953f2..aef0e80 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >@@ -5,9 +5,22 @@ > <title>Koha › Course reserves › Course details for [% course.course_name %]</title> > [% INCLUDE 'doc-head-close.inc' %] > >+<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(){ >+ $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "sPaginationType": "four_button", >+ "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], >+ "iDisplayLength": 20, >+ "aoColumnDefs": [ >+ { 'bSortable': false, 'aTargets': [ 9, 10, 11 ] } >+ ] >+ })); >+ > $("a.delete_item").click(function(){ > return confirm( _("Are you sure you want to remove this item from the course?")); > }); >@@ -56,7 +69,7 @@ > </div> > > [% IF course_reserves %] >- <table> >+ <table id="course_reserves_table"> > <caption>Reserves</caption> > <thead> > <tr> >-- >1.7.2.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 10634
:
19877
|
19878
|
19883
|
20772