diff --git a/src/README.txt b/src/README.txt index 79051a1..b07bb9b 100644 --- a/src/README.txt +++ b/src/README.txt @@ -1,8 +1,8 @@ === Tainacan Interface === Contributors: andrebenedito, daltonmartins, fabianobn, jacsonp, leogermani, weryques, wetah, eduardohumberto, ravipassos, jessicafpx, marinagiolo, omarceloavila, r-guimaraes Requires at least: WordPress 5.9 -Tested up to: 6.5.2 -Version: 2.7.8 +Tested up to: 6.6.0 +Version: 2.7.9 Requires PHP: 7.0 Stable tag: trunk License: GNU General Public License v3 diff --git a/src/assets/js/copy-link.js b/src/assets/js/copy-link.js index 46040c5..2f5d553 100644 --- a/src/assets/js/copy-link.js +++ b/src/assets/js/copy-link.js @@ -35,4 +35,11 @@ function copyTextToClipboard(text) { (err) => { console.error('Async: Could not copy text: ', err); }); -} \ No newline at end of file +} + +jQuery( document ).ready(function( $ ) { + $( '#tainacan-interface-sharer' ).on('click', function() { + var link = $(this).data('link'); + copyTextToClipboard(link); + }); +}); diff --git a/src/assets/scss/style.scss b/src/assets/scss/style.scss index 096105b..adef7a0 100644 --- a/src/assets/scss/style.scss +++ b/src/assets/scss/style.scss @@ -4,7 +4,7 @@ Author: Tainacan Author URI: https://tainacan.org Theme URI: https://tainacan.org/blog/category/tema/ Description: This is the default theme for the Tainacan project. Use this in conjunction with Tainacan plugin to easily manage and publish you digital collections with a beautiful faceted search interface. Ideal for museums, galleries, libraries and anyone who have a digital repository. -Version: 2.7.8 +Version: 2.7.9 Tested up to: 6.5.2 Requires PHP: 7.0 License: GNU General Public License v3 diff --git a/src/functions.php b/src/functions.php index adde410..228eaf8 100644 --- a/src/functions.php +++ b/src/functions.php @@ -1,7 +1,7 @@