Merge branch 'master' of http://docs.nculture.org:30000/nculture/iams.nlib
This commit is contained in:
commit
b94abe50cc
@ -199,7 +199,6 @@ $(document).ready(function() {
|
|||||||
}else{
|
}else{
|
||||||
$("#mobileCertYn").val("N");
|
$("#mobileCertYn").val("N");
|
||||||
$("#mobileCertSendBtn").css("display","");
|
$("#mobileCertSendBtn").css("display","");
|
||||||
$("#mobileReSend").css("display","");
|
|
||||||
$("[id^='mobileSuc']").css("display","none");
|
$("[id^='mobileSuc']").css("display","none");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -349,6 +348,7 @@ function mobileCert(){
|
|||||||
success : function(result){
|
success : function(result){
|
||||||
alert("인증번호가 발송됐습니다.");
|
alert("인증번호가 발송됐습니다.");
|
||||||
$("#mobileCertYn").val("N");
|
$("#mobileCertYn").val("N");
|
||||||
|
$("#mobileReSend").css("display","");
|
||||||
$("[id^='mobileSuc']").css("display","none");
|
$("[id^='mobileSuc']").css("display","none");
|
||||||
$("[id^='mobileVrfctNo']").css("display","inline-block");
|
$("[id^='mobileVrfctNo']").css("display","inline-block");
|
||||||
mobileDoubleSubmitFlag = false;
|
mobileDoubleSubmitFlag = false;
|
||||||
|
|||||||
@ -32,6 +32,7 @@
|
|||||||
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
birthSelectbox();
|
||||||
<%
|
<%
|
||||||
//인증완료
|
//인증완료
|
||||||
%>
|
%>
|
||||||
@ -96,6 +97,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$("input:checkbox[name='gender']:checkbox[value='${loginVO.gender}']").prop("checked",true);
|
$("input:checkbox[name='gender']:checkbox[value='${loginVO.gender}']").prop("checked",true);
|
||||||
|
|
||||||
|
|
||||||
var birthday='${loginVO.birthday}';
|
var birthday='${loginVO.birthday}';
|
||||||
|
|
||||||
var birth_yy = birthday.substr(0,4);
|
var birth_yy = birthday.substr(0,4);
|
||||||
@ -107,7 +109,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
var MobileNo='<c:out value="${loginVO.mobileNo}"/>';
|
var MobileNo='<c:out value="${loginVO.mobileNo}"/>';
|
||||||
|
|
||||||
if(!MobileNo == "")
|
if(!(MobileNo == ""))
|
||||||
{
|
{
|
||||||
var mobileNo_1 = "";
|
var mobileNo_1 = "";
|
||||||
var mobileNo_2 = "";
|
var mobileNo_2 = "";
|
||||||
@ -131,6 +133,30 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
function birthSelectbox(){
|
||||||
|
var now = new Date();
|
||||||
|
var year = now.getFullYear();
|
||||||
|
var mon = now.getMonth() + 1 > 9 ? "" + (now.getMonth() + 1) : "0" + (now.getMonth() + 1);
|
||||||
|
var day = now.getDate() > 9 ? "" + now.getDate() : "0" + now.getDate();
|
||||||
|
// 년도
|
||||||
|
for (var i = 1900; i <= year; i++) {
|
||||||
|
$("#birth_yy").append('<option value="' + i + '">' + i + "</option>");
|
||||||
|
}
|
||||||
|
|
||||||
|
// 월별
|
||||||
|
for (var i = 1; i <= 12; i++) {
|
||||||
|
var mm = i > 9 ? i : "0" + i;
|
||||||
|
$("#birth_mm").append('<option value="' + mm + '">' + mm + "</option>");
|
||||||
|
}
|
||||||
|
|
||||||
|
// 일별
|
||||||
|
for (var i = 1; i <= 31; i++) {
|
||||||
|
var dd = i > 9 ? i : "0" + i;
|
||||||
|
$("#birth_dd").append('<option value="' + dd + '">' + dd + "</option>");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
function update(){
|
function update(){
|
||||||
var flag = false;
|
var flag = false;
|
||||||
|
|
||||||
@ -466,32 +492,6 @@ function checkBirthday() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery(function ($) {
|
|
||||||
var now = new Date();
|
|
||||||
var year = now.getFullYear();
|
|
||||||
var mon = now.getMonth() + 1 > 9 ? "" + (now.getMonth() + 1) : "0" + (now.getMonth() + 1);
|
|
||||||
var day = now.getDate() > 9 ? "" + now.getDate() : "0" + now.getDate();
|
|
||||||
// 년도
|
|
||||||
for (var i = 1900; i <= year; i++) {
|
|
||||||
$("#birth_yy").append('<option value="' + i + '">' + i + "</option>");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 월별
|
|
||||||
for (var i = 1; i <= 12; i++) {
|
|
||||||
var mm = i > 9 ? i : "0" + i;
|
|
||||||
$("#birth_mm").append('<option value="' + mm + '">' + mm + "</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");
|
|
||||||
});
|
|
||||||
|
|
||||||
function isValidDate(param) {
|
function isValidDate(param) {
|
||||||
try {
|
try {
|
||||||
param = param.replace(/-/g, '');
|
param = param.replace(/-/g, '');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user