Bugzilla – Attachment 119305 Details for
Bug 27594
Add access to public download link for publicly-accessible uploads
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27594: (QA follow-up): Display message only if copy worked
Bug-27594-QA-follow-up-Display-message-only-if-cop.patch (text/plain), 1.37 KB, created by
Jonathan Druart
on 2021-04-07 14:15:36 UTC
(
hide
)
Description:
Bug 27594: (QA follow-up): Display message only if copy worked
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-04-07 14:15:36 UTC
Size:
1.37 KB
patch
obsolete
>From c16920c1112055a8b0a32ab6be3114d910722a82 Mon Sep 17 00:00:00 2001 >From: Victor Grousset/tuxayo <victor@tuxayo.net> >Date: Tue, 6 Apr 2021 20:10:22 +0200 >Subject: [PATCH] Bug 27594: (QA follow-up): Display message only if copy > worked > >And check if writeText is available. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >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 00d380a813..e8a32d88cb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >@@ -445,11 +445,11 @@ > > $(".get-file").on("click", function(e){ > e.preventDefault(); >- if( navigator.clipboard ){ >+ if( navigator.clipboard && navigator.clipboard.writeText){ > navigator.clipboard.writeText( $(this).attr("href") ); >+ $(this).attr("data-original-title", _( "Link copied to the clipboard" ) ) >+ .tooltip("show"); > } >- $(this).attr("data-original-title", _( "Link copied to the clipboard" ) ) >- .tooltip("show"); > }); > $(".get-file").tooltip({ > delay: { "show": 100, "hide": 500 } >-- >2.20.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 27594
:
116218
|
116219
|
117289
|
117310
|
119241
|
119304
|
119305
|
119398
|
119906
|
119995
|
119996
|
119997
|
120416