Alert when copied to clipboard
This commit is contained in:
parent
9f1c3276d8
commit
cb2a7ed9aa
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue