interesting bug. The piechart code was calling nonexistent code (given the view) which conflated the bug hunting and was irrelevant. The real problem was having datatables paginate twice due to the way the table is loaded. So, unnecessary code removed and resolves #216

This commit is contained in:
cktricky
2016-01-07 15:19:58 -05:00
parent 5f449bd729
commit 3d76988741
-6
View File
@@ -38,11 +38,6 @@
<%= javascript_include_tag "jquery.dataTables.js"%>
<script type="text/javascript">
function dataTablePagination(){
$('#data-table').dataTable({
"sPaginationType": "full_numbers"
});
};
function makeActive(){
$('li[id="admin"]').addClass('active');
@@ -54,7 +49,6 @@ function loadTable(){
$(document).ready(
makeActive,
dataTablePagination(),
loadTable()
);
</script>