Bug 22195: (follow-up) Add tooltip to buttons
This patch adds title attributes and Bootstrap tooltips to the columns configuration and export/print butttons. To test, apply the patch and visit a page with columns configuration buttons. Confirm that when you hover over each of the DataTable control buttons a tooltip is shown. Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
ba1f33e6ae
commit
ee94197482
|
|
@ -63,6 +63,8 @@ function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) {
|
|||
extend: 'colvis',
|
||||
fade: 100,
|
||||
columns: included_ids,
|
||||
className: "columns_controls",
|
||||
titleAttr: _("Columns settings"),
|
||||
text: '<i class="fa fa-lg fa-gear"></i>',
|
||||
exportOptions: {
|
||||
columns: exportColumns
|
||||
|
|
@ -71,6 +73,8 @@ function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) {
|
|||
{
|
||||
extend: 'collection',
|
||||
fade: 100,
|
||||
className: "export_controls",
|
||||
titleAttr: _("Export or print"),
|
||||
text: '<i class="fa fa-lg fa-download"></i>',
|
||||
buttons: export_buttons
|
||||
}
|
||||
|
|
@ -101,6 +105,8 @@ function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) {
|
|||
deactivate_filters(id_selector);
|
||||
}
|
||||
|
||||
$(".columns_controls,.export_controls").tooltip();
|
||||
|
||||
return table;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue