|
77 | 77 | 'btnAdd', |
78 | 78 | 'btnShowDeleted', |
79 | 79 | 'btnShowAdmins', |
| 80 | + 'refresh', |
80 | 81 | 'btnExport', |
81 | 82 | 'export', |
82 | 83 | 'print', |
83 | 84 | 'fullscreen', |
84 | | - 'refresh', |
| 85 | + 'advancedSearch', |
85 | 86 | ], |
86 | 87 | classes: 'table table-responsive table-striped snipe-table table-no-bordered', |
87 | 88 | clickToSelect: data_with_default('click-to-select', true), |
@@ -185,19 +186,21 @@ classes: 'table table-responsive table-striped snipe-table table-no-bordered', |
185 | 186 | override_class = tableButton.attr('class'); |
186 | 187 |
|
187 | 188 | 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'); |
190 | 191 | tableButton.attr('data-tooltip', 'true'); |
191 | 192 | tableButton.attr('data-placement', 'auto'); |
192 | 193 |
|
| 194 | + // This prevents the slight button jitter on the mouseovees on the dashboard |
| 195 | + tableButton.tooltip({container: 'body', title: title}); |
| 196 | +
|
193 | 197 | // This handles the case where we want a different color button than the default |
194 | 198 | if ((override_class) && ((override_class.indexOf('btn-info') >= 0)) || (override_class.indexOf('btn-danger') >= 0)) { |
195 | 199 | tableButton.removeClass('btn-primary'); |
196 | 200 | } |
197 | 201 | } |
198 | 202 | }); |
199 | | - // $('[data-tooltip="true"]').tooltip(); |
200 | | - |
| 203 | +
|
201 | 204 | }, |
202 | 205 | formatNoMatches: function () { |
203 | 206 | return '{{ trans('table.no_matching_records') }}'; |
@@ -315,7 +318,6 @@ class: 'btn-info', |
315 | 318 | window.location.href = '{{ route('maintenances.create', ['asset_id' => (isset($asset)) ? $asset->id :'' ]) }}'; |
316 | 319 | }, |
317 | 320 | attributes: { |
318 | | - class: 'btn-info', |
319 | 321 | title: '{{ trans('button.add_maintenance') }}', |
320 | 322 | } |
321 | 323 | }, |
|
0 commit comments