mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-27 18:10:42 +00:00
set icon for copying to clipboard to green after click
This commit is contained in:
parent
028ed5d5a3
commit
d042fd3588
|
|
@ -761,6 +761,7 @@ $(document).ready( function() {
|
|||
$("body").on("click", ".copy-to-clipboard", function(ev) {
|
||||
console.log($(this).data());
|
||||
navigator.clipboard.writeText($(this).data("text"));
|
||||
$(this).addClass('text-success');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -809,6 +809,7 @@ $(document).ready( function() {
|
|||
$("body").on("click", ".copy-to-clipboard", function(ev) {
|
||||
console.log($(this).data());
|
||||
navigator.clipboard.writeText($(this).data("text"));
|
||||
$(this).addClass('text-success');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user