diff --git a/src/js/yunohost/controllers/tools.js b/src/js/yunohost/controllers/tools.js index 84ac1b6f..1daf691e 100644 --- a/src/js/yunohost/controllers/tools.js +++ b/src/js/yunohost/controllers/tools.js @@ -140,7 +140,7 @@ "locale": y18n.locale }, function() { // Configure behavior for the button to share log on Yunohost (it calls display --share) - $("#share-with-yunopaste").on("click", function() { + $('button[data-action="share"]').on("click", function() { c.api('GET', '/logs/display?path='+$(this).data('log-id')+'&share', {}, function(data) { $('div.loader').remove(); diff --git a/src/views/tools/tools_log.ms b/src/views/tools/tools_log.ms index 07ddc3a0..44891631 100644 --- a/src/views/tools/tools_log.ms +++ b/src/views/tools/tools_log.ms @@ -10,7 +10,7 @@