Skip to content

Commit 2467e82

Browse files
committed
Reordered buttons
1 parent 224642f commit 2467e82

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

resources/views/partials/bootstrap-table.blade.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,12 @@
7777
'btnAdd',
7878
'btnShowDeleted',
7979
'btnShowAdmins',
80+
'refresh',
8081
'btnExport',
8182
'export',
8283
'print',
8384
'fullscreen',
84-
'refresh',
85+
'advancedSearch',
8586
],
8687
classes: 'table table-responsive table-striped snipe-table table-no-bordered',
8788
clickToSelect: data_with_default('click-to-select', true),
@@ -185,19 +186,21 @@ classes: 'table table-responsive table-striped snipe-table table-no-bordered',
185186
override_class = tableButton.attr('class');
186187
187188
if (title) {
188-
// console.log(title)
189-
// tableButton.attr('data-toggle', 'tooltip'); // Keep this commented out so that we don't interfere with the dropdown toggle for
189+
// Keep this commented out so that we don't interfere with the dropdown toggle for columns, etc
190+
// tableButton.attr('data-toggle', 'tooltip');
190191
tableButton.attr('data-tooltip', 'true');
191192
tableButton.attr('data-placement', 'auto');
192193
194+
// This prevents the slight button jitter on the mouseovees on the dashboard
195+
tableButton.tooltip({container: 'body', title: title});
196+
193197
// This handles the case where we want a different color button than the default
194198
if ((override_class) && ((override_class.indexOf('btn-info') >= 0)) || (override_class.indexOf('btn-danger') >= 0)) {
195199
tableButton.removeClass('btn-primary');
196200
}
197201
}
198202
});
199-
// $('[data-tooltip="true"]').tooltip();
200-
203+
201204
},
202205
formatNoMatches: function () {
203206
return '{{ trans('table.no_matching_records') }}';
@@ -315,7 +318,6 @@ class: 'btn-info',
315318
window.location.href = '{{ route('maintenances.create', ['asset_id' => (isset($asset)) ? $asset->id :'' ]) }}';
316319
},
317320
attributes: {
318-
class: 'btn-info',
319321
title: '{{ trans('button.add_maintenance') }}',
320322
}
321323
},

0 commit comments

Comments
 (0)