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 (sibling) {
|
||||||
if (isClonedNode(current, sibling)) {
|
if (isClonedNode(current, sibling)) {
|
||||||
if (isPureEnglish(current.textContent)) {
|
if (isPureEnglish(current.textContent)) {
|
||||||
processContainer(sibling);
|
if (sibling.children) {
|
||||||
|
processContainer(sibling);
|
||||||
|
}
|
||||||
$current.addClass('original-english');
|
$current.addClass('original-english');
|
||||||
$sibling.addClass('translated');
|
$sibling.addClass('translated');
|
||||||
$sibling.addClass('translated-cn');
|
$sibling.addClass('translated-cn');
|
||||||
|
|
Loading…
Reference in New Issue