Forráskód Böngészése

提交修改未同步处理部分

namejr 4 éve
szülő
commit
ff6e84a634
1 módosított fájl, 17 hozzáadás és 5 törlés
  1. 17 5
      EBook.Web/Common/mtm_temp.js

+ 17 - 5
EBook.Web/Common/mtm_temp.js

@@ -101,7 +101,10 @@ function bindEvent(ele, opt) {
                             //plugin.call(code);
                             //alert($(this).attr("hitCode"));
                             var sHCode = $(this).attr("shcode");
-                            if (sHCode == 1) {
+                            if (sHCode != undefined && sHCode==1) {
+                                test($(this).attr("hitCode"));
+                            }
+                            else if (sHCode == undefined) {
                                 test($(this).attr("hitCode"));
                             }
                         }
@@ -114,7 +117,10 @@ function bindEvent(ele, opt) {
                         //plugin.call(code);
                         //alert($(this).attr("hitCode"));
                         var sHCode = $(this).attr("shcode");
-                        if (sHCode == 1) {
+                        if (sHCode != undefined && sHCode == 1) {
+                            test($(this).attr("hitCode"));
+                        }
+                        else if (sHCode == undefined) {
                             test($(this).attr("hitCode"));
                         }
                     }
@@ -127,7 +133,10 @@ function bindEvent(ele, opt) {
                         //plugin.call(code);
                         //alert($(this).attr("hitCode"));
                         var sHCode = $(this).attr("shcode");
-                        if (sHCode == 1) {
+                        if (sHCode != undefined && sHCode == 1) {
+                            test($(this).attr("hitCode"));
+                        }
+                        else if (sHCode == undefined) {
                             test($(this).attr("hitCode"));
                         }
                     }
@@ -137,8 +146,11 @@ function bindEvent(ele, opt) {
                         //plugin.call(code);
                         //alert($(this).attr("hitCode"));
                         var sHCode = $(this).attr("shcode");
-                        if (sHCode == 1) {
-                            test($(this).next().attr("hitCode"));
+                        if (sHCode != undefined && sHCode == 1) {
+                            test($(this).attr("hitCode"));
+                        }
+                        else if (sHCode == undefined) {
+                            test($(this).attr("hitCode"));
                         }
                     }
                 });