zhangxc 4 سال پیش
والد
کامیت
fe68ac482f
2فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 1 0
      src/js/cdss.js
  2. 3 0
      src/js/staticSearch.js

+ 1 - 0
src/js/cdss.js

@@ -536,6 +536,7 @@ function bindTabClick(){
     const moduleName = $(this).attr("data-name")
     getModuleShow(moduleConfig[moduleName])
     if(moduleName == "medical"){
+      $(".staticSearchT .ipt").find("input").focus()
       $(".contentWrapper").css("overflowY","hidden")
     }else{
       $(".contentWrapper").css("overflowY","auto")

+ 3 - 0
src/js/staticSearch.js

@@ -163,3 +163,6 @@ $(".staticSearchT").on('click','#clearKnowledge',function() {
     $(this).prev('.ipt').find('input').focus()
     $(this).css({display:"none"})
 })
+$(function(){
+    $(".staticSearchT .ipt").find("input").focus()
+})