Merge pull request #10767 from uberbrady/fix_double_request_datatable

One attempt to fix the 'datatable double-request' problem.
This commit is contained in:
snipe 2022-03-08 20:34:15 -08:00 committed by GitHub
commit c817daa4da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@
return false;
}
$('.snipe-table').bootstrapTable('destroy').bootstrapTable({
$('.snipe-table').bootstrapTable({
classes: 'table table-responsive table-no-bordered',
ajaxOptions: {
headers: {

View file

@ -35,7 +35,7 @@
id="activityReport"
data-url="{{ route('api.activity.index') }}"
data-mobile-responsive="true"
data-toggle="table"
{{-- data-toggle="table" --}}
class="table table-striped snipe-table"
data-export-options='{
"fileName": "activity-report-{{ date('Y-m-d') }}",

View file

@ -33,7 +33,7 @@
id="depreciationReport"
data-url="{{ route('api.depreciation-report.index') }}"
data-mobile-responsive="true"
data-toggle="table"
{{-- data-toggle="table" --}}
class="table table-striped snipe-table"
data-columns="{{ \App\Presenters\DepreciationReportPresenter::dataTableLayout() }}"
data-export-options='{