diff --git a/adm/member_form.php b/adm/member_form.php
index 1cd07d5af..10e17f07a 100644
--- a/adm/member_form.php
+++ b/adm/member_form.php
@@ -9,7 +9,7 @@ $token = get_token();
if ($w == '')
{
$required_mb_id = 'required';
- $required_mb_id_class = 'required minlength=3 alnum_';
+ $required_mb_id_class = 'required alnum_';
$required_mb_password = 'required';
$sound_only = '필수';
@@ -154,7 +154,7 @@ include_once('./admin.head.php');
|
- class="frm_input " size="15" maxlength="20" >
+ class="frm_input " size="15" minlength="3" maxlength="20">
접근가능그룹보기
|
|
@@ -162,9 +162,9 @@ include_once('./admin.head.php');
|
- |
+ |
|
- |
+ |
|
diff --git a/js/wrest.js b/js/wrest.js
index e3ce98f7f..1b9c8db3a 100644
--- a/js/wrest.js
+++ b/js/wrest.js
@@ -204,15 +204,15 @@ function wrestAlNum_(fld)
}
// 최소 길이 검사
-function wrestMinLength(fld, css)
+function wrestMinLength(fld)
{
if (!wrestTrim(fld)) return;
- var str = css.split('='); // minlength=?? <-- str[1]
+ var minlength = fld.getAttribute("minlength");
if (wrestFld == null) {
- if (fld.value.length < parseInt(str[1])) {
- wrestMsg = wrestItemname(fld) + " : 최소 "+str[1]+"글자 이상 입력하세요.\n";
+ if (fld.value.length < parseInt(minlength)) {
+ wrestMsg = wrestItemname(fld) + " : 최소 "+minlength+"글자 이상 입력하세요.\n";
wrestFld = fld;
}
}
@@ -282,6 +282,10 @@ function wrestSubmit()
wrestRequired(el);
}
+ if (el.getAttribute("minlength") != null) {
+ wrestMinLength(el);
+ }
+
var array_css = el.className.split(" "); // class 를 공백으로 나눔
el.style.backgroundColor = wrestFldDefaultColor;
@@ -305,10 +309,7 @@ function wrestSubmit()
case "telnum" : wrestTelNum(el); break; // 김선용 2006.3 - 전화번호 형식 검사
case "imgext" : wrestImgExt(el); break;
default :
- // css 가 minlength= 로 시작한다면 = 뒤의 숫자는 최소길이값
- if (/^minlength\=/.test(css)) {
- wrestMinLength(el, css); break;
- } else if (/^extension\=/.test(css)) {
+ if (/^extension\=/.test(css)) {
wrestExtension(el, css); break;
}
} // switch (css)
diff --git a/mobile/skin/member/basic/register_form.skin.php b/mobile/skin/member/basic/register_form.skin.php
index 8ba1e5a5a..8cf96a119 100644
--- a/mobile/skin/member/basic/register_form.skin.php
+++ b/mobile/skin/member/basic/register_form.skin.php
@@ -32,17 +32,17 @@ $juso_addr3_view = $member['mb_addr_jibeon'] == 'N' ? 'style="display:none"' : '
|
영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.
- >
+ >
|
|
- > |
+ > |
|
- > |
+ > |
diff --git a/skin/member/basic/register_form.skin.php b/skin/member/basic/register_form.skin.php
index 5cc06bbfb..b4b1bd236 100644
--- a/skin/member/basic/register_form.skin.php
+++ b/skin/member/basic/register_form.skin.php
@@ -35,17 +35,17 @@ $juso_addr3_view = $member['mb_addr_jibeon'] == 'N' ? 'style="display:none"' : '
|
영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.
- class="frm_input minlength=3 " minlength="3" maxlength="20">
+ class="frm_input " minlength="3" maxlength="20">
|
|
- class="frm_input minlength=3 " minlength="3" maxlength="20"> |
+ class="frm_input " minlength="3" maxlength="20"> |
|
- class="frm_input minlength=3 " minlength="3" maxlength="20"> |
+ class="frm_input " minlength="3" maxlength="20"> |