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:
@@ -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>
|
||||
Reference in New Issue
Block a user