fix pure english bugs.
This commit is contained in:
parent
70606848cc
commit
3b5d85c524
|
@ -92,17 +92,20 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
|
||||||
if (sibling.children) {
|
if (sibling.children) {
|
||||||
processContainer(sibling);
|
processContainer(sibling);
|
||||||
}
|
}
|
||||||
$current.addClass('original-english');
|
if(!isPureEnglish(sibling.textContent)){
|
||||||
$sibling.addClass('translated');
|
$current.addClass('original-english');
|
||||||
$sibling.addClass('translated-cn');
|
$sibling.addClass('translated');
|
||||||
$sibling.after($current);
|
$sibling.addClass('translated-cn');
|
||||||
$sibling.on('click', function (event) {
|
$sibling.after($current);
|
||||||
// for nested structure.
|
$sibling.on('click', function (event) {
|
||||||
event.stopPropagation();
|
// for nested structure.
|
||||||
$current.toggleClass('hidden');
|
event.stopPropagation();
|
||||||
});
|
$current.toggleClass('hidden');
|
||||||
// addSpacingBetweenCnAndEn(sibling);
|
});
|
||||||
return true;
|
// addSpacingBetweenCnAndEn(sibling);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue