View | Details | Raw Unified | Return to bug 10634
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (-2 / +14 lines)
Lines 5-13 Link Here
5
<title>Koha &rsaquo; Course reserves &rsaquo; Course details for [% course.course_name %]</title>
5
<title>Koha &rsaquo; Course reserves &rsaquo; Course details for [% course.course_name %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
7
8
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
9
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
10
[% INCLUDE 'datatables-strings.inc' %]
11
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
8
<script type="text/javascript">
12
<script type="text/javascript">
9
//<![CDATA[
13
//<![CDATA[
10
    $(document).ready(function(){
14
    $(document).ready(function(){
15
        $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
16
            "sPaginationType": "four_button",
17
            "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
18
            "iDisplayLength": 20,
19
            "aoColumnDefs": [
20
                { 'bSortable': false, 'aTargets': [ 9, 10, 11 ] }
21
            ]
22
        }));
23
11
        $("a.delete_item").click(function(){
24
        $("a.delete_item").click(function(){
12
            return confirm( _("Are you sure you want to remove this item from the course?"));
25
            return confirm( _("Are you sure you want to remove this item from the course?"));
13
        });
26
        });
Lines 56-62 Link Here
56
            </div>
69
            </div>
57
70
58
            [% IF course_reserves %]
71
            [% IF course_reserves %]
59
            <table>
72
            <table id="course_reserves_table">
60
                <caption>Reserves</caption>
73
                <caption>Reserves</caption>
61
                <thead>
74
                <thead>
62
                    <tr>
75
                    <tr>
63
- 

Return to bug 10634