Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iConcept authored and iConcept committed Mar 15, 2017
1 parent 4f5a574 commit fc2b1c1
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 24 deletions.
Binary file modified src/public/DataTables/.DS_Store
Binary file not shown.
Binary file added src/public/DataTables/Buttons-1.2.4/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
33 changes: 9 additions & 24 deletions src/views/elements/table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
}
?>
<table id="{{ $special_id }}" class="table table-striped table-bordered" width="100%" style="overflow-x: auto;">
<table id="{{ $special_id }}" class="table table-striped table-bordered" width="100%" style="margin-top: 0px !important;">
<thead>
<tr>
@foreach ($columns as $column)
Expand Down Expand Up @@ -51,6 +51,10 @@
overflow-x: auto;
width: 100%;
}
.align-right {
text-align: right;
margin-bottom: 5px;
}
</style>

<script type="text/javascript">
Expand All @@ -72,35 +76,16 @@
} );
t_{{ $special_id }} = $('#{{ $special_id }}').DataTable({
"sDom": "<'dt-toolbar'<'col-lg-12 hidden-xs'T>r>"+
"sDom": "<'dt-toolbar'<'col-lg-12 align-right'B>r>"+
"<'autooverflow't>"+
"<'dt-toolbar-footer'<'col-sm-6 col-xs-12 hidden-xs'i><'col-xs-12 col-sm-6'p>>",
"autoWidth" : true,
"oLanguage": {
"sSearch": '<span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span>'
},
"oTableTools": {
sSwfPath: "/sa/js/plugin/datatables/swf/copy_csv_xls_pdf.swf",
aButtons: [
            'copy',
            'csv',
'excelHtml5',
'pdf',
'print'
]
},
"preDrawCallback" : function() {
// Initialize the responsive datatables helper once.
if (!responsiveHelper_datatable_fixed_column) {
responsiveHelper_datatable_fixed_column = new ResponsiveDatatablesHelper($('#{{ $special_id }}'), breakpointDefinition);
}
},
"rowCallback" : function(nRow) {
responsiveHelper_datatable_fixed_column.createExpandIcon(nRow);
},
"drawCallback" : function(oSettings) {
responsiveHelper_datatable_fixed_column.respond();
},
buttons: [
'copy', 'csv', 'excel', 'pdf'
],
@if (count($number_cols) > 0)
"columnDefs": [
{
Expand Down
1 change: 1 addition & 0 deletions src/views/partials/script.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<script src="{{ asset('/sa/js/smart-chat-ui/smart.chat.manager.min.js') }}"></script>

<script src="{{ asset('/DataTables/datatables.js') }}"></script>
<script src="{{ asset('/DataTables/Responsive-2.1.1/js/dataTables.responsive.js') }}"></script>
<script src="{{ asset('/sa/js/plugin/ckeditor/ckeditor.js') }}"></script>


Expand Down

0 comments on commit fc2b1c1

Please sign in to comment.