嘉缘人才系统_BUG修复 出生日期总提示需大于12岁

时间:2022-12-18 08:16:40
1,出生日期——再次选择后返回数据没有立即验证,出生日期总提示需大于12岁

修改文件:
js/calendar.js


修改一下两个方法: (13,14,21,29行)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

点击(此处)折叠或打开

  1. function GetDate(idname,e){
  2.     var sDate;
  3.     var getElement = is_ie ? event.srcElement : e.target;
  4.     if(getElement.tagName == "TD"){
  5.         if(getElement.innerHTML != ""){
  6.             inYear=getObj('Year').value;
  7.             inMonth=getObj('Month').value;
  8.             if(inMonth<10){inMonth="0"+inMonth;}
  9.             inDay=getElement.innerHTML;
  10.             if(inDay<10){inDay="0"+inDay;}
  11.             sDate = inYear + "-" + inMonth + "-" + inDay;
  12.             getObj(idname).value=sDate;
  13.             getObj(idname).focus(); //获得焦点
  14.             HiddenCalendar(idname);
  15.                              
  16.                                
  17.         }
  18.     }
  19. }
  20.  
  21. function HiddenCalendar(idname){
  22.     //关闭选择窗口
  23.     getObj("Calendar").style.visibility='hidden';
  24.     var objllist=document.getElementsByTagName('select');
  25.     for(var i=0;i<objllist.length;i++)
  26.     {
  27.         objllist[i].style.visibility="";
  28.     }
  29.     getObj(idname).focus && getObj(idname).blur();//失去焦点
  30. }




+++++++++++++++++++++++++++++++++++++++++++++++++++++++
阅读(215) | 评论(0) | 转发(0) |
评论热议