Use ready function from the default layouts

You don't actually need to include the document ready function in the
page.

The commit updates the document ready function in the default template
to specify the features discussed in the prose and deletes the one that
is embedded in the page itself.
This commit is contained in:
George Hartzell
2017-02-14 11:22:13 -08:00
parent ec98b67b6f
commit 8dc46885e1
2 changed files with 4 additions and 17 deletions

View File

@ -43,9 +43,10 @@
<script type="text/javascript" charset="utf8" src="//cdn.datatables.net/1.10.13/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.display').DataTable( {
paging: false, paging: true,
stateSave: true stateSave: true,
searching: true
} }
); );
}); });

View File

@ -10,20 +10,6 @@ permalink: mydoc_tables.html
folder: mydoc folder: mydoc
--- ---
{% unless site.output == "pdf" %}
<script>
$(document).ready(function(){
$('table.display').DataTable( {
paging: true,
stateSave: true,
searching: true
}
);
});
</script>
{% endunless %}
## Multimarkdown Tables ## Multimarkdown Tables
You can use Multimarkdown syntax for tables. The following shows a sample: You can use Multimarkdown syntax for tables. The following shows a sample: