생년월일 기본 오늘일자 처리 없앰
This commit is contained in:
parent
7c1bd3ec38
commit
4866e2da93
@ -143,7 +143,7 @@ $(document).ready(function() {
|
||||
|
||||
var birthday="${loginVO.snsBirthday}";
|
||||
|
||||
if(!birthday == "")
|
||||
if(!fn_isEmpty(birthday))
|
||||
{
|
||||
var birth_yy =birthday.substr(0,4);
|
||||
var birth_mm =birthday.substr(4,2);
|
||||
@ -161,7 +161,7 @@ $(document).ready(function() {
|
||||
|
||||
var MobileNo="${loginVO.snsMobileNo}";
|
||||
|
||||
if(!MobileNo == "")
|
||||
if(!fn_isEmpty(MobileNo))
|
||||
{
|
||||
var mobileNo_1 = "";
|
||||
var mobileNo_2 = "";
|
||||
@ -487,24 +487,28 @@ jQuery(function ($) {
|
||||
var mon = now.getMonth() + 1 > 9 ? "" + (now.getMonth() + 1) : "0" + (now.getMonth() + 1);
|
||||
var day = now.getDate() > 9 ? "" + now.getDate() : "0" + now.getDate();
|
||||
// 년도
|
||||
$("#birth_yy").append('<option value="">(선택)</option>');
|
||||
for (var i = 1900; i <= year; i++) {
|
||||
$("#birth_yy").append('<option value="' + i + '">' + i + "</option>");
|
||||
}
|
||||
|
||||
// 월별
|
||||
$("#birth_mm").append('<option value="">(선택)</option>');
|
||||
for (var i = 1; i <= 12; i++) {
|
||||
var mm = i > 9 ? i : "0" + i;
|
||||
$("#birth_mm").append('<option value="' + mm + '">' + mm + "</option>");
|
||||
}
|
||||
|
||||
// 일별
|
||||
$("#birth_dd").append('<option value="">(선택)</option>');
|
||||
for (var i = 1; i <= 31; i++) {
|
||||
var dd = i > 9 ? i : "0" + i;
|
||||
$("#birth_dd").append('<option value="' + dd + '">' + dd + "</option>");
|
||||
}
|
||||
$("#birth_yy > option[value=" + year + "]").attr("selected", "true");
|
||||
$("#birth_mm > option[value=" + mon + "]").attr("selected", "true");
|
||||
$("#birth_dd > option[value=" + day + "]").attr("selected", "true");
|
||||
|
||||
// $("#birth_yy > option[value=" + year + "]").attr("selected", "true");
|
||||
// $("#birth_mm > option[value=" + mon + "]").attr("selected", "true");
|
||||
// $("#birth_dd > option[value=" + day + "]").attr("selected", "true");
|
||||
});
|
||||
|
||||
function calcAge(birth) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user