Bläddra i källkod

修改css"pointer-events"的添加方式

sugangqiang 2 år sedan
förälder
incheckning
76707b5ee7
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      public/static/modular/gate/talentInfo/new_talentInfo_info.js

+ 3 - 3
public/static/modular/gate/talentInfo/new_talentInfo_info.js

@@ -1175,7 +1175,7 @@ TalentInfoInfoDlg.setNoChangeField = function () {
     if (realState == 11) {
         $("#photoImg").removeAttr("onclick");
         $("input,textarea").each(function () {
-            $(this).attr("readonly", "readonly").attr("style", "pointer-events:none;");
+            $(this).attr("readonly", "readonly").css("pointer-events", "none");
         });
         $("select,input[type=radio]").each(function () {
             $(this).attr("disabled", "disabled");
@@ -1194,10 +1194,10 @@ TalentInfoInfoDlg.setNoChangeField = function () {
                     if (name == 'select' || name == 'SELECT') {
                         $("#" + arr[key]).removeAttr("disabled");
                     } else if (name == "input" || name == 'textarea' || name == "INPUT" || name == 'TEXTAREA') {
-                        $("#" + arr[key]).removeAttr("readonly").removeAttr("style");
+                        $("#" + arr[key]).removeAttr("readonly").css("pointer-events", "initial");
                     } else {
                         if (typeof name == "undefined") {
-                            $("input[name=" + arr[key] + "]").removeAttr("disabled").removeAttr("readonly").removeAttr("style");
+                            $("input[name=" + arr[key] + "]").removeAttr("disabled").removeAttr("readonly").css("pointer-events", "initial");
                         }
                     }
                 }