Kaynağa Gözat

添加译文优化

Bhikkhu-Kosalla 5 yıl önce
ebeveyn
işleme
d5a998b310
1 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 6 2
      app/term/note.js

+ 6 - 2
app/term/note.js

@@ -632,8 +632,12 @@ function add_new_tran_button_click(obj) {
 	}
 	html += "</ul>";
 	$(obj).parent().children(".tran_text_tool_bar").first().html(html);
-	$(obj).parent().children(".tran_text_tool_bar").first().show();
-	$(obj).parent().show();
+	if ($(obj).parent().children(".tran_text_tool_bar").css("display") == "block") {
+		$(obj).parent().children(".tran_text_tool_bar").first().hide();
+	} else {
+		$(obj).parent().children(".tran_text_tool_bar").first().show();
+		$(obj).parent().show();
+	}
 }
 
 function new_sentence(book, para, begin, end, channel) {