Browse Source

Merge pull request #770 from visuddhinanda/laravel

:ambulance: 阅读模式显示不出来术语修改窗口
visuddhinanda 4 years ago
parent
commit
61eed0cacd
2 changed files with 5 additions and 1 deletions
  1. 4 0
      public/app/public/js/comm.js
  2. 1 1
      public/app/term/note.js

+ 4 - 0
public/app/public/js/comm.js

@@ -292,6 +292,10 @@ function testCJK(string){
 	return reg.test(string);
 
 }
+//显示程序行号
+function get_line(){
+    return (new Error().stack.split(':')[7]);
+}
 
 //所有页面都需要在加载的的时候设置浏览器时区
 setTimeZone();

+ 1 - 1
public/app/term/note.js

@@ -308,7 +308,7 @@ function render_read_mode_sent(iterator) {
 	htmlSent += "</div>";
 	htmlSent += "<div class='sent_tran_div'>";
 	for (const oneTran of iterator.translation) {
-		let html = "<span class='tran_sent' lang='" + oneTran.lang + "' channal='" + oneTran.channal + "'>";
+		let html = "<span class='sent_tran' lang='" + oneTran.lang + "' channal='" + oneTran.channal + "'>";
 
 		//将绝对链接转换为 用户连接的主机链接
 		//oneTran.text = oneTran.text.replace(/www-[A-z]*.wikipali.org/g,location.host);