1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

removal of clipboard write

This commit is contained in:
cTn 2014-04-03 14:20:12 +02:00
parent d953917953
commit 2977f9725b
4 changed files with 0 additions and 36 deletions

View file

@ -70,19 +70,6 @@ function tab_initialize_cli() {
// give input element user focus
$('.tab-cli textarea').focus();
$('.tab-cli .copy').click(function() {
var text = $('.tab-cli .window .wrapper').html();
text = text.replace(/<br\s*\/?>/mg,"\n"); // replacing br tags with \n to keep some of the formating
var copyFrom = $('<textarea/>');
copyFrom.text(text);
$('body').append(copyFrom);
copyFrom.select();
document.execCommand('copy');
copyFrom.remove();
});
});
}