Copy to clipboard for shots
This commit is contained in:
@@ -303,3 +303,11 @@ $(function() {
|
||||
task_open(task_id);
|
||||
});
|
||||
});
|
||||
|
||||
/* Copy to clipboard when clicking on an input with 'copy-to-clipboard' class */
|
||||
$('body').on('click', '.copy-to-clipboard', function(e){
|
||||
e.preventDefault();
|
||||
|
||||
$(this).select();
|
||||
document.execCommand('copy');
|
||||
});
|
||||
|
Reference in New Issue
Block a user