Bugzilla – Attachment 119996 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.42 KB, created by
David Nind
on 2021-04-22 11:35:43 UTC
(
hide
)
Description:
Bug 27594: (QA follow-up): Display message only if copy worked
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-04-22 11:35:43 UTC
Size:
1.42 KB
patch
obsolete
>From 8b3b7e813f3d2e598d271b726da62575e8b4d70e 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. > >Signed-off-by: David Nind <david@davidnind.com> >--- > 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 8febb0a13f..ae80f542ed 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >@@ -471,11 +471,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.11.0
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