@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt | 4 +++- koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 13 ------------- 2 files changed, 3 insertions(+), 14 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt @@ -438,7 +438,9 @@ $(".get-file").on("click", function(e){ e.preventDefault(); - copyToClipboard( $(this).attr("href") ); + if( navigator.clipboard ){ + navigator.clipboard.writeText( $(this).attr("href") ); + } $(this).attr("data-original-title", _( "Link copied to the clipboard" ) ) .tooltip("show"); }); --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -358,16 +358,3 @@ function saveOrClearSimpleSearchParams() { localStorage.setItem('cat_search_pulldown_selection', pulldown_selection ); localStorage.setItem('searchbox_value', searchbox_value ); } - -// https://hackernoon.com/copying-text-to-clipboard-with-javascript-df4d4988697f -function copyToClipboard( text ){ - var el = document.createElement("textarea"); // Create a