Fix javascript console errors
1. Add necessary closing bits to the doc ready function. 2. Update to current version of DataTables css and js.
This commit is contained in:
parent
06dc9e0e25
commit
ec98b67b6f
@ -39,16 +39,16 @@
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{% if page.datatable == true %}
|
{% if page.datatable == true %}
|
||||||
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.5/css/jquery.dataTables.css">
|
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.13/css/jquery.dataTables.css">
|
||||||
<script type="text/javascript" charset="utf8" src="//cdn.datatables.net/1.10.5/js/jquery.dataTables.js"></script>
|
<script type="text/javascript" charset="utf8" src="//cdn.datatables.net/1.10.13/js/jquery.dataTables.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
$('table.datatable').DataTable( {
|
$('table.datatable').DataTable( {
|
||||||
paging: false,
|
paging: false,
|
||||||
stateSave: true
|
stateSave: true
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user