解决目录跳转无法在发布版工作的bug

This commit is contained in:
Zhicheng Wang 2016-05-14 20:59:13 +08:00
parent 3e8b152e2c
commit e8f3333e19
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@
prevNode.classList.add('original-english');
}
node.title = prevNode.innerText;
node.id = prevNode.id;
node.setAttribute('id', prevNode.id);
prevNode.removeAttribute('id');
node.classList.add('translated');
node.classList.add('translated-cn');
}