From ee94197482ccd68ba88e3fce33eb3029f4e88f6f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 26 Jan 2019 19:20:32 +0000 Subject: [PATCH] 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 --- .../intranet-tmpl/prog/en/includes/columns_settings.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc index f88f516e8c..cdca0faede 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc @@ -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: '', 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: '', 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; } -- 2.39.5