From cb2a7ed9aa9978b1a71513257362b90fee1d7e3a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 15 Nov 2018 22:46:26 +0000 Subject: [PATCH] Alert when copied to clipboard --- static/src/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/src/js/index.js b/static/src/js/index.js index bef6acd..aff9522 100644 --- a/static/src/js/index.js +++ b/static/src/js/index.js @@ -54,7 +54,7 @@ var clipboard = new Clipboard('a'); clipboard.on('success', function (e) { var ele = $(e.trigger); ele.find('i').attr('class', 'fas fa-check'); - ele.attr('title', 'Copied!'); + alert('Copied "' + ele.data('clipboard-text') + '" to clipboard!'); }); $('[data-clipboard-text]').on('click', function (event) {