Merge branch '237' of github.com:mondeja/django-rosetta into mondeja-237

This commit is contained in:
Marco Bonetti 2020-06-07 15:16:24 +02:00
commit 6931e7ea7c

View file

@ -90,7 +90,7 @@ google.setOnLoadCallback(function() {
if($(this).val()) {
$('.alert', $(this).parents('tr')).remove();
var RX = /%(?:\([^\s\)]*\))?[sdf]|\{[\w\d_]+?\}/g,
origs=$('.original', $(this).parents('tr')).html().match(RX),
origs=$(this).parents('tr').find('.original>.message').html().match(RX),
trads=$(this).val().match(RX),
error = $('<span class="alert">Unmatched variables</span>');
if (origs && trads) {