Bugzilla – Attachment 170862 Details for
Bug 37748
In Bootstrap 5 "disabled" class must be on anchor tag, not list item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37748: (follow-up) Move tooltip initialization to staff-global.js
Bug-37748-follow-up-Move-tooltip-initialization-to.patch (text/plain), 15.03 KB, created by
Jonathan Druart
on 2024-08-29 10:49:21 UTC
(
hide
)
Description:
Bug 37748: (follow-up) Move tooltip initialization to staff-global.js
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-08-29 10:49:21 UTC
Size:
15.03 KB
patch
obsolete
>From 62c650f4aff3edab643d9ba30f7c5683fcef4319 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 28 Aug 2024 10:56:38 +0000 >Subject: [PATCH] Bug 37748: (follow-up) Move tooltip initialization to > staff-global.js > >This patch moves generic initializations of Bootstrap tooltips into >staff-global.js. > >Templates which included custom tooltip initialization have been updated >to use the global function. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt | 2 -- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt | 2 -- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt | 2 -- > .../prog/en/modules/admin/authorised_values.tt | 3 +-- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 4 ++-- > .../prog/en/modules/admin/marc-overlay-rules.tt | 2 -- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 1 - > koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt | 3 --- > .../prog/en/modules/course_reserves/course-details.tt | 6 ------ > .../intranet-tmpl/prog/en/modules/members/moremember.tt | 2 -- > .../prog/en/modules/reports/guided_reports_start.tt | 2 -- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt | 1 - > koha-tmpl/intranet-tmpl/prog/js/catalog.js | 4 ---- > koha-tmpl/intranet-tmpl/prog/js/members-menu.js | 1 - > .../intranet-tmpl/prog/js/messaging-preference-form.js | 4 ---- > koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js | 2 -- > koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js | 1 - > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 1 + > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt | 2 -- > 19 files changed, 4 insertions(+), 41 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >index 264f96fbd8c..375787a3f4f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >@@ -567,8 +567,6 @@ > $("#budgetsTabs li:eq([% tab | html %]) a").tab("show"); > [% END %] > >- $('[data-bs-toggle="tooltip"]').tooltip(); >- > $("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, { > "columnDefs": [ > { "targets": [ -1 ], "orderable": false, "searchable": false }, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >index 686e6f4df26..11b61995f73 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >@@ -764,8 +764,6 @@ > e.preventDefault(); > alert(_("This fund has sub funds. It cannot be deleted.")); > }); >- >- $('[data-bs-toggle="tooltip"]').tooltip(); > }); > </script> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt >index 3d5c1c79d7f..add5ae79ed5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt >@@ -345,8 +345,6 @@ > $("#budget_est_"+budget_id).text($("#budget_tot_"+budget_id).prev().text()); > $("#budget_est_"+budget_id).css("color","green"); > }); >- >- $('[data-bs-toggle="tooltip"]').tooltip(); > }); > </script> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >index 6c65fa63a78..068c932e07d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >@@ -318,7 +318,7 @@ > [% branches_str = branches_str _ "\n" _ branch.branchname _ " (" _ branch.branchcode _ ")" %] > [% END %] > [% END %] >- <span class="library_limitation" title="[% branches_str | html %]"> >+ <span class="library_limitation" data-bs-toggle="tooltip" title="[% branches_str | html %]"> > [% IF loo.branches.size > 1 %] > <span>[% loo.branches.size | html %] library limitations</span> > [% ELSE %] >@@ -421,7 +421,6 @@ > $('#category_search').change(function() { > $('#category').submit(); > }); >- $(".library_limitation").tooltip(); > > $("#delete_category").on('submit', function(){ > return confirm(_("Are you sure you want to delete this authorized value category?")); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >index bc19c0e7550..81f6c319dcd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >@@ -495,12 +495,13 @@ > [% library_str = library_str _ "\n" _ library.branchname _ " (" _ library.branchcode _ ")" %] > [% END %] > [% END %] >- <span class="library_limitation" title="[% library_str | html %]"> >+ <span class="library_limitation" data-bs-toggle="tooltip" title="[% library_str | html %]"> > [% IF library_limits.count > 1 %] > <span>[% library_limits.count | html %] library limitations</span> > [% ELSE %] > <span>[% library_limits.count | html %] library limitation</span> > [% END %] >+ </span> > [% ELSE %] > <span>No limitation</span> > [% END %] >@@ -560,7 +561,6 @@ > $("#itemtype").on("blur",function(){ > toUC(this); > }); >- $(".library_limitation").tooltip(); > if( $("#icons .tab-pane.active").length < 1 ){ > $("#icons a:first").tab("show"); > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >index b46a9b4c7ed..c2d5b2c3e80 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >@@ -543,8 +543,6 @@ > if ($filter_container.data('filter')) { > $('#filter').val($filter_container.data('filter')); > } >- >- $('[data-bs-toggle="tooltip"]').tooltip(); > }); > </script> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index 74c2e235700..b4cbc64bb93 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -1625,7 +1625,6 @@ > $("#return_date_remember").hide(); > } > }); >- $('[data-bs-toggle="tooltip"]').tooltip(); > > $(".printcheckinslip").on("click", function(e){ > e.preventDefault(); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >index fe0be53700b..7ccbcffcad2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >@@ -200,9 +200,6 @@ > var club_id = $(this).data("id"); > SearchToHold( club_id ); > }); >- $('[data-bs-toggle="tooltip"]').on("click",function(e){ >- e.stopPropagation(); >- }).tooltip(); > }); > > function ConfirmDeleteTemplate( id, name ) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >index d08f8888f24..27cb90917cf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >@@ -363,12 +363,6 @@ > return confirmDelete(_("Are you sure you want to delete this course?")); > [% END %] > }); >- $(".disabled").tooltip().on("click", function(e){ >- e.preventDefault(); >- if( $(this).hasClass("checkedout") ){ >- alert(_("This item cannot be removed. It is checked out")); >- } >- }); > }); > </script> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index eb3c49eaf9a..99d09c27078 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -806,8 +806,6 @@ > } > > $(document).ready(function () { >- $("#info_digests").tooltip(); >- > $("#finesholdsissues a[data-bs-toggle='tab']").on( > "shown.bs.tab", > function (e) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index 3a4ca5778c5..098af5df0e3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -1965,8 +1965,6 @@ > load_group_subgroups(); > [% END %] > >- $('[data-bs-toggle="tooltip"]').tooltip(); >- > $('#limit').change(function() { > $('#limitselect').submit(); > }); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >index 12f32a0c137..5dfdafdcce1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >@@ -528,7 +528,6 @@ > }); > > if ( window.isSecureContext ) { >- $('[data-bs-toggle="tooltip"]').tooltip(); > $(".get-file").on("click", function(e){ > e.preventDefault(); > if( navigator.clipboard && navigator.clipboard.writeText){ >diff --git a/koha-tmpl/intranet-tmpl/prog/js/catalog.js b/koha-tmpl/intranet-tmpl/prog/js/catalog.js >index 93cf5f9cfd1..ec37cb08940 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/catalog.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/catalog.js >@@ -118,10 +118,6 @@ $(document).ready(function() { > }); > $("#export").remove(); // Hide embedded export form if JS menus available > >- $('[data-bs-toggle="tooltip"]').on("click",function(e){ >- e.stopPropagation(); >- }).tooltip(); >- > $(".addtolist").on("click", function (e) { > e.preventDefault(); > var shelfnumber = $(this).data("shelfnumber"); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js b/koha-tmpl/intranet-tmpl/prog/js/members-menu.js >index c61323ed4bf..09afae4801e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/members-menu.js >@@ -39,7 +39,6 @@ $(document).ready(function(){ > return window.confirm( __("Are you sure you want to delete this message? This cannot be undone.") ); > }); > >- $("#updatechild, #patronflags, #renewpatron, #deletepatron, #exportbarcodes").tooltip(); > $("#exportcheckins").click(function(){ > export_barcodes(); > $(".btn-group").removeClass("open"); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js b/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js >index 1e1cbdf73ed..7e8fe2eefbd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js >@@ -1,6 +1,4 @@ > $(document).ready(function(){ >- $("#info_digests").tooltip(); >- > var message_prefs_dirty = false; > $('#memberentry_messaging_prefs > *').change(function() { > message_prefs_dirty = true; >@@ -78,6 +76,4 @@ $(document).ready(function(){ > $(".pmp_phone").click(function(){ > toggle_digest(Number($(this).attr("id").replace("phone", ""))); > }); >- >- $('#memberentry_messaging_prefs [data-bs-toggle="tooltip"][disabled]').tooltip(); > }); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js b/koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js >index da01b81a1f7..9b702933ae8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js >@@ -84,6 +84,4 @@ $(document).ready(function() { > "pagingType": "full", > "autoWidth": false, > }, stock_rotation_table_settings); >- >- $('[data-bs-toggle="tooltip"]').tooltip(); > }); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js b/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js >index a5952048c27..2ebaf6ad2f0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js >@@ -21,5 +21,4 @@ function popup(subscriptionid) { > $("#mana-subscription-share").click(function() { > window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=share"; > }); >- $('[data-bs-toggle="tooltip"]').tooltip(); > }); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index e7f32193e10..e357c8b3986 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -373,6 +373,7 @@ $(document).ready(function () { > $("#setlibrary_panel").removeClass("setlibrary_panel_open").html("").hide(); > }); > >+ $('[data-bs-toggle="tooltip"]').tooltip(); > }); > > function removeLastBorrower() { >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >index 072ab17d01f..c25147453d1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >@@ -263,8 +263,6 @@ > [% INCLUDE 'datatables.inc' %] > <script> > $(document).ready(function(){ >- $("#info_digests").tooltip(); >- > function toggle_digest(id){ > let PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %]; > let TalkingTechItivaPhoneNotification = [% Koha.Preference('TalkingTechItivaPhoneNotification') || 0 | html %]; >-- >2.34.1
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 37748
:
170784
|
170793
|
170804
|
170807
|
170818
|
170819
|
170820
|
170821
|
170860
|
170861
| 170862