Bugzilla – Attachment 84450 Details for
Bug 22195
Change default DataTables configuration to consolidate buttons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22195: (follow-up) Add tooltip to buttons
Bug-22195-follow-up-Add-tooltip-to-buttons.patch (text/plain), 1.88 KB, created by
Owen Leonard
on 2019-01-26 19:23:56 UTC
(
hide
)
Description:
Bug 22195: (follow-up) Add tooltip to buttons
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-01-26 19:23:56 UTC
Size:
1.88 KB
patch
obsolete
>From 321bd05a146d83fba919a103ace2ef7ae7b8a79d Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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. >--- > koha-tmpl/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 f88f516..cdca0fa 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: '<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; > } > >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22195
:
84336
|
84337
|
84391
|
84442
|
84443
| 84450 |
84629