summaryrefslogtreecommitdiffstats
path: root/data/templates/products/bestbefore.html
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/products/bestbefore.html')
-rw-r--r--data/templates/products/bestbefore.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/data/templates/products/bestbefore.html b/data/templates/products/bestbefore.html
index dbc7f47..721ea9d 100644
--- a/data/templates/products/bestbefore.html
+++ b/data/templates/products/bestbefore.html
@@ -1,4 +1,4 @@
-<table class="sortable table table-bordered table-striped table-condensed">
+<table id="producttable" class="table table-bordered table-striped table-condensed">
<thead>
<tr><th>EAN</th></th><th>Name</th><th>Amount</th><th>Best Before Date</th></tr>
</thead>
@@ -6,3 +6,9 @@
{{{DATA}}}
</tbody>
</table>
+
+<script type="text/javascript">
+$(document).ready(function() {
+ $('#producttable').DataTable();
+} );
+</script>