浏览代码

note.js 只处理有info属性的

visuddhinanda 5 年之前
父节点
当前提交
9665d5718f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/term/note.js

+ 1 - 1
app/term/note.js

@@ -72,7 +72,7 @@ function note_init(input) {
 function note_update_background_style() {
 function note_update_background_style() {
 	var mSentsBook = new Array();
 	var mSentsBook = new Array();
 	var mBgIndex = 1;
 	var mBgIndex = 1;
-	$("note").each(function () {
+	$("note[info]").each(function () {
 		let info = $(this).attr("info").split("-");
 		let info = $(this).attr("info").split("-");
 		if (info.length >= 2) {
 		if (info.length >= 2) {
 			let book = info[0];
 			let book = info[0];