Bug 11832: fix JavaScript error on staff client place hold screen if record has no...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / ordered.tt
index 5a2af78..05a3321 100644 (file)
@@ -1,7 +1,21 @@
 [% USE KohaDates %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Acquisitions &rsaquo; Ordered</title>
+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
 [% INCLUDE 'doc-head-close.inc' %]
+[% INCLUDE 'datatables.inc' %]
+<script type="text/javascript">
+//<![CDATA[
+[% IF (dateformat == 'metric') %]
+    dt_add_type_uk_date();
+[% END %]
+ $(document).ready(function() {
+    var spent = $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
+        "sPaginationType": "four_button"
+    } ) );
+ });
+ //]]>
+</script>
 </head>
 <body id="acq_ordered" class="acq">
 [% INCLUDE 'header.inc' %]
@@ -31,7 +45,7 @@
        <th> Subtotal </th>
     </tr>
     </thead>
-
+    <tbody>
 [% FOREACH order IN ordered %]
     [% IF loop.odd %]
         <tr class="highlight">
@@ -68,7 +82,7 @@
        </td>
     </tr>
 [% END %]
-
+    </tbody>
     <tfoot>
     <tr>
         <td> Total </td>