Bugzilla – Attachment 145133 Details for
Bug 31962
Add tooltip to 'configure' on datatable controls
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31962: Add tooltip to 'configure' on datatable controls
Bug-31962-Add-tooltip-to-configure-on-datatable-co.patch (text/plain), 3.62 KB, created by
David Nind
on 2023-01-07 11:11:00 UTC
(
hide
)
Description:
Bug 31962: Add tooltip to 'configure' on datatable controls
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-01-07 11:11:00 UTC
Size:
3.62 KB
patch
obsolete
>From ace5f172b1954156e110c49b62982daa4dc7e613 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Fri, 6 Jan 2023 21:04:54 +0000 >Subject: [PATCH] Bug 31962: Add tooltip to 'configure' on datatable controls > >This makes sure that the last button on the datatable controls >also has a tooltip, like the other buttons. > >To test: >* Without the patch: >* Check out an item and look at the table of checkouts >* Look at the detail page of a record with at least one item >* Confirm that the 'configure' button doesn't have a tooltip appear > as a bubble like the other buttons >* Apply patch >* Restart_all and reload pages >* Make sure the styling of the 'configure' tooltip now matches that > of the other buttons > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../intranet-tmpl/prog/en/includes/columns_settings.inc | 5 +++-- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 5 +++-- > 2 files changed, 6 insertions(+), 4 deletions(-) > >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 8df6eb56cc..d3f3b6e005 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc >@@ -165,7 +165,8 @@ function KohaTable(id_selector, dt_parameters, table_settings, add_filters) { > dt_parameters[ "buttons" ].push( > { > className: "dt_button_configure_table", >- titleAttr: _("Table settings"), >+ fade: 100, >+ titleAttr: _("Configure table"), > text: '<i class="fa fa-lg fa-wrench"></i> <span class="dt-button-text">' + _("Configure") + '</span>', > action: function() { > window.location = '/cgi-bin/koha/admin/columns_settings.pl?module=' + table_settings['module'] + '&page=' + table_settings['page'] + '&table=' + table_settings['table']; >@@ -228,7 +229,7 @@ function KohaTable(id_selector, dt_parameters, table_settings, add_filters) { > deactivate_filters(id_selector); > } > >- $(".dt_button_clear_filter, .columns_controls, .export_controls").tooltip(); >+ $(".dt_button_clear_filter, .columns_controls, .export_controls, .dt_button_configure_table").tooltip(); > > return table; > } >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index 0fbb9b625c..378fea1054 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -823,7 +823,8 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { > settings[ "buttons" ].push( > { > className: "dt_button_configure_table", >- titleAttr: __("Table settings"), >+ fade: 100, >+ titleAttr: __("Configure table"), > text: '<i class="fa fa-lg fa-wrench"></i> <span class="dt-button-text">' + __("Configure") + '</span>', > action: function() { > window.location = '/cgi-bin/koha/admin/columns_settings.pl?module=' + table_settings['module'] + '&page=' + table_settings['page'] + '&table=' + table_settings['table']; >@@ -832,7 +833,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { > ); > } > >- $(".dt_button_clear_filter, .columns_controls, .export_controls").tooltip(); >+ $(".dt_button_clear_filter, .columns_controls, .export_controls, .dt_button_configure_table").tooltip(); > > if ( add_filters ) { > settings['orderCellsTop'] = true; >-- >2.30.2
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 31962
:
145106
|
145133
|
145851