Process sibling with children only
This commit is contained in:
parent
f1c1c089d2
commit
684d78cca0
|
@ -81,7 +81,9 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
|
|||
if (sibling) {
|
||||
if (isClonedNode(current, sibling)) {
|
||||
if (isPureEnglish(current.textContent)) {
|
||||
processContainer(sibling);
|
||||
if (sibling.children) {
|
||||
processContainer(sibling);
|
||||
}
|
||||
$current.addClass('original-english');
|
||||
$sibling.addClass('translated');
|
||||
$sibling.addClass('translated-cn');
|
||||
|
|
Loading…
Reference in New Issue