2024-03-18 10:56 강사 정보 길이 제한 수정
This commit is contained in:
parent
5eba5c0f5d
commit
219756eab7
@ -146,6 +146,12 @@ $( document ).ready(function(){
|
|||||||
} */
|
} */
|
||||||
|
|
||||||
// $("#mode").val(type);
|
// $("#mode").val(type);
|
||||||
|
|
||||||
|
if($("#prfsnFld").val().length > 1000){
|
||||||
|
alert("전문분야는 1000자 까지만 가능합니다.("+$("#prfsnFld").val().length+")");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var data = new FormData(document.getElementById("createForm"));
|
var data = new FormData(document.getElementById("createForm"));
|
||||||
_fileForm2.forEach(function(obj, idx) {
|
_fileForm2.forEach(function(obj, idx) {
|
||||||
if (obj) data.append("file"+idx, obj.fileObj);
|
if (obj) data.append("file"+idx, obj.fileObj);
|
||||||
|
|||||||
@ -240,6 +240,12 @@ function getYears(getYear){
|
|||||||
$("#dBirth").val(dBirthAll);
|
$("#dBirth").val(dBirthAll);
|
||||||
|
|
||||||
|
|
||||||
|
if($("#prfsnFld").val().length > 1000){
|
||||||
|
alert("전문분야는 1000자 까지만 가능합니다.("+$("#prfsnFld").val().length+")");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var data1 = new FormData(document.detailForm);
|
var data1 = new FormData(document.detailForm);
|
||||||
|
|
||||||
if(confirm("강사정보를 수정하시겠습니까?")){
|
if(confirm("강사정보를 수정하시겠습니까?")){
|
||||||
|
|||||||
@ -146,6 +146,17 @@ $( document ).ready(function(){
|
|||||||
} */
|
} */
|
||||||
|
|
||||||
// $("#mode").val(type);
|
// $("#mode").val(type);
|
||||||
|
|
||||||
|
if($("#actvtCarer").val().length > 1000){
|
||||||
|
alert("활동경력은 1000자 까지만 가능합니다.("+$("#actvtCarer").val().length+")");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if($("#mnLctrCn").val().length >1000){
|
||||||
|
alert("주요강의내용은 1000자 까지만 가능합니다.("+$("#mnLctrCn").val().length+")");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var data = new FormData(document.getElementById("createForm"));
|
var data = new FormData(document.getElementById("createForm"));
|
||||||
_fileForm2.forEach(function(obj, idx) {
|
_fileForm2.forEach(function(obj, idx) {
|
||||||
if (obj) data.append("file"+idx, obj.fileObj);
|
if (obj) data.append("file"+idx, obj.fileObj);
|
||||||
|
|||||||
@ -213,6 +213,18 @@
|
|||||||
var dBirthAll = dBirth1 + dBirth2 + dBirth3
|
var dBirthAll = dBirth1 + dBirth2 + dBirth3
|
||||||
$("#dBirth").val(dBirthAll)
|
$("#dBirth").val(dBirthAll)
|
||||||
|
|
||||||
|
|
||||||
|
if($("#actvtCarer").val().length > 1000){
|
||||||
|
alert("활동경력은 1000자 까지만 가능합니다.("+$("#actvtCarer").val().length+")");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if($("#mnLctrCn").val().length >1000){
|
||||||
|
alert("주요강의내용은 1000자 까지만 가능합니다.("+$("#mnLctrCn").val().length+")");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var data = new FormData(document.getElementById("detailForm"));
|
var data = new FormData(document.getElementById("detailForm"));
|
||||||
if(confirm("수정 하시겠습니까?")){
|
if(confirm("수정 하시겠습니까?")){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|||||||
@ -100,6 +100,11 @@
|
|||||||
alert("전문분야는 필수입니다.");
|
alert("전문분야는 필수입니다.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($("#prfsnFld").val().length > 1000){
|
||||||
|
alert("전문분야는 1000자 까지만 가능합니다.("+$("#prfsnFld").val().length+")");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
<!-- for validator #3 -->
|
<!-- for validator #3 -->
|
||||||
|
|||||||
@ -96,6 +96,17 @@
|
|||||||
<!-- for validator #3 -->
|
<!-- for validator #3 -->
|
||||||
*/
|
*/
|
||||||
if (!validateVEInstrDetailVO(document.createForm)) return;
|
if (!validateVEInstrDetailVO(document.createForm)) return;
|
||||||
|
|
||||||
|
|
||||||
|
if($("#actvtCarer").val().length > 1000){
|
||||||
|
alert("활동경력은 1000자 까지만 가능합니다.("+$("#actvtCarer").val().length+")");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if($("#mnLctrCn").val().length >1000){
|
||||||
|
alert("주요강의내용은 1000자 까지만 가능합니다.("+$("#mnLctrCn").val().length+")");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if($("#actvtCarer").val() == ''){
|
if($("#actvtCarer").val() == ''){
|
||||||
alert("활동경력은 필수입니다.");
|
alert("활동경력은 필수입니다.");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user