mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-27 18:10:42 +00:00
add select for saving text to clipboard
This commit is contained in:
parent
62a8f12ed2
commit
028ed5d5a3
|
|
@ -757,6 +757,11 @@ $(document).ready( function() {
|
|||
}
|
||||
return e.which != 13;
|
||||
}); /* }}} */
|
||||
|
||||
$("body").on("click", ".copy-to-clipboard", function(ev) {
|
||||
console.log($(this).data());
|
||||
navigator.clipboard.writeText($(this).data("text"));
|
||||
});
|
||||
});
|
||||
|
||||
function onAddClipboard(ev) { /* {{{ */
|
||||
|
|
|
|||
|
|
@ -805,6 +805,11 @@ $(document).ready( function() {
|
|||
}
|
||||
return e.which != 13;
|
||||
}); /* }}} */
|
||||
|
||||
$("body").on("click", ".copy-to-clipboard", function(ev) {
|
||||
console.log($(this).data());
|
||||
navigator.clipboard.writeText($(this).data("text"));
|
||||
});
|
||||
});
|
||||
|
||||
function onAddClipboard(ev) { /* {{{ */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user