Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1012 from jdredondo/5.4.0
Browse files Browse the repository at this point in the history
add datatable to widget table in statistics
  • Loading branch information
fherryfherry authored Mar 5, 2018
2 parents 9c13613 + 88b326f commit 14dc98e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 7 additions & 1 deletion src/views/statistic_builder/components/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@
</tr>
@endforeach
</tbody>
</table>
</table>
<script type="text/javascript">
$('table.table').DataTable({
dom: "<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",
lengthMenu: [[10, 25, 50, -1], [10, 25, 50, "All"]]
});
</script>
@endif
<?php
}else{
Expand Down
12 changes: 4 additions & 8 deletions src/views/statistic_builder/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@
width: 5px;
height: 5px;
}
::-webkit-scrollbar-track {
background: #000000;
}
::-webkit-scrollbar-thumb {
background: #333333;
}
</style>
@endpush

Expand All @@ -82,6 +74,10 @@ function addWidget(id_cms_statistics,area,component) {
}
</script>
<!--DATATABLE-->
<link rel="stylesheet" href="{{ asset ('vendor/crudbooster/assets/adminlte/plugins/datatables/dataTables.bootstrap.css')}}">
<script src="{{ asset ('vendor/crudbooster/assets/adminlte/plugins/datatables/jquery.dataTables.min.js')}}"></script>
<script src="{{ asset ('vendor/crudbooster/assets/adminlte/plugins/datatables/dataTables.bootstrap.min.js')}}"></script>
<!--END HERE-->
@endpush

Expand Down

0 comments on commit 14dc98e

Please sign in to comment.