Bugzilla – Attachment 172433 Details for
Bug 38049
Admin/RecordSources_spec.ts is still failing randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38049: Call .tooltip() only if needed
Bug-38049-Call-tooltip-only-if-needed.patch (text/plain), 1.18 KB, created by
David Nind
on 2024-10-06 22:22:20 UTC
(
hide
)
Description:
Bug 38049: Call .tooltip() only if needed
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-10-06 22:22:20 UTC
Size:
1.18 KB
patch
obsolete
>From f6c116ef6f3dafa378bd211430f6d5416ba3afa6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 1 Oct 2024 14:15:07 +0200 >Subject: [PATCH] Bug 38049: Call .tooltip() only if needed > >This is cheating, yes. > >We had a cypress test failing because of this line > $(...).tooltip is not a function > >It's failing randomly on Admin/RecordSources_spec.ts, which does not >need the tooltip. > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index cfb6769f0d..1eb53b2f43 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -381,7 +381,10 @@ $(document).ready(function () { > $("#setlibrary_panel").removeClass("setlibrary_panel_open").html("").hide(); > }); > >- $('[data-bs-toggle="tooltip"]').tooltip(); >+ if ( $('[data-bs-toggle="tooltip"]').length ) { >+ $('[data-bs-toggle="tooltip"]').tooltip(); >+ } >+ > }); > > function removeLastBorrower() { >-- >2.39.5
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 38049
:
172250
|
172251
|
172259
|
172260
|
172431
|
172432
|
172433
|
172510
|
172511
|
172512