mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge pull request #10767 from uberbrady/fix_double_request_datatable
One attempt to fix the 'datatable double-request' problem.
This commit is contained in:
commit
c817daa4da
|
@ -31,7 +31,7 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$('.snipe-table').bootstrapTable('destroy').bootstrapTable({
|
$('.snipe-table').bootstrapTable({
|
||||||
classes: 'table table-responsive table-no-bordered',
|
classes: 'table table-responsive table-no-bordered',
|
||||||
ajaxOptions: {
|
ajaxOptions: {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
id="activityReport"
|
id="activityReport"
|
||||||
data-url="{{ route('api.activity.index') }}"
|
data-url="{{ route('api.activity.index') }}"
|
||||||
data-mobile-responsive="true"
|
data-mobile-responsive="true"
|
||||||
data-toggle="table"
|
{{-- data-toggle="table" --}}
|
||||||
class="table table-striped snipe-table"
|
class="table table-striped snipe-table"
|
||||||
data-export-options='{
|
data-export-options='{
|
||||||
"fileName": "activity-report-{{ date('Y-m-d') }}",
|
"fileName": "activity-report-{{ date('Y-m-d') }}",
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
id="depreciationReport"
|
id="depreciationReport"
|
||||||
data-url="{{ route('api.depreciation-report.index') }}"
|
data-url="{{ route('api.depreciation-report.index') }}"
|
||||||
data-mobile-responsive="true"
|
data-mobile-responsive="true"
|
||||||
data-toggle="table"
|
{{-- data-toggle="table" --}}
|
||||||
class="table table-striped snipe-table"
|
class="table table-striped snipe-table"
|
||||||
data-columns="{{ \App\Presenters\DepreciationReportPresenter::dataTableLayout() }}"
|
data-columns="{{ \App\Presenters\DepreciationReportPresenter::dataTableLayout() }}"
|
||||||
data-export-options='{
|
data-export-options='{
|
||||||
|
|
Loading…
Reference in a new issue