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 f4d2debbae..457e3fb214 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt
@@ -170,7 +170,13 @@
[% record.hashvalue | html %] |
[% record.uploadcategorycode | html %] |
[% IF !plugin %]
- [% IF record.public %]Yes[% ELSE %]No[% END %] |
+
+ [% IF record.public %]
+ Yes
+ [% ELSE %]
+ No
+ [% END %]
+ |
[% IF record.permanent %]No[% ELSE %]Yes[% END %] |
[% END %]
@@ -425,6 +431,20 @@
e.preventDefault();
SubmitMe('new');
});
+
+ $(".get-file").on("click", function(e){
+ e.preventDefault();
+ if( navigator.clipboard ){
+ navigator.clipboard.writeText( $(this).attr("href") );
+ }
+ $(this).attr("data-original-title", _( "Link copied to the clipboard" ) )
+ .tooltip("show");
+ });
+ $(".get-file").tooltip({
+ delay: { "show": 100, "hide": 500 }
+ }).on("hidden.bs.tooltip", function(){
+ $(this).attr("data-original-title", _( "Copy link to this file" ) );
+ });
});
[% END %]
|