From 7ac8f61cdb0b6c4de3bc1bc9e27dd3a39ee5f54e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 18 Oct 2019 21:04:06 +0200 Subject: [PATCH] Use the thing with data- now used elsewhere --- src/js/yunohost/controllers/tools.js | 2 +- src/views/tools/tools_log.ms | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 @@
-