mbi/django-rosetta

Add Auto Translation insert at end of file rosetta.js

Rocky771 opened this issue · 0 comments

Django 2.2.4
django-rosetta 0.9.3

$('div.submit-row p.paginator').append( $("<b id='mytrans'>Copy everything (only to empty)</b>").css({'margin-left': '50px', 'border': '1px solid #ca361d', 'padding': '7px 10px', 'border-radius': '5px', 'cursor': 'pointer'}).click(function(event) { $('table#result_list tbody tr').each(function(index, el) { if ( $(this).find('td.translation textarea').val() == '' ) { $(this).find('td.translation textarea').val( $.trim( $(this).find('td.original span.message').text() ) ); } }); }) );

https://yadi.sk/a/TtzXGmFscZ8-Fw