diff --git a/adm/board_form.php b/adm/board_form.php index 087832b93..6d49f2a54 100644 --- a/adm/board_form.php +++ b/adm/board_form.php @@ -421,6 +421,7 @@ $frm_submit .= ''; + 댓글 개 이상 달리면 수정불가 @@ -1290,8 +1291,8 @@ function fboardform_submit(f) - if (parseInt(f.bo_count_modify.value) < 1) { - alert("원글 수정 불가 댓글수는 1 이상 입력하셔야 합니다."); + if (parseInt(f.bo_count_modify.value) < 0) { + alert("원글 수정 불가 댓글수는 0 이상 입력하셔야 합니다."); f.bo_count_modify.focus(); return false; } diff --git a/bbs/write.php b/bbs/write.php index 74541eefe..4c5c67efd 100644 --- a/bbs/write.php +++ b/bbs/write.php @@ -89,8 +89,8 @@ if ($w == '') { and mb_id <> '{$member['mb_id']}' and wr_is_comment = 1 "; $row = sql_fetch($sql); - if ($row['cnt'] >= $board['bo_count_modify'] && !$is_admin) - alert('이 글과 관련된 코멘트가 존재하므로 수정 할 수 없습니다.\\n\\n코멘트가 '.$board['bo_count_modify'].'건 이상 달린 원글은 수정할 수 없습니다.'); + if ($board['bo_count_modify'] && $row['cnt'] >= $board['bo_count_modify'] && !$is_admin) + alert('이 글과 관련된 댓글이 존재하므로 수정 할 수 없습니다.\\n\\n댓글이 '.$board['bo_count_modify'].'건 이상 달린 원글은 수정할 수 없습니다.'); $title_msg = '글수정'; } else if ($w == 'r') { diff --git a/css/admin.css b/css/admin.css index 7350dce0a..c07482ff1 100644 --- a/css/admin.css +++ b/css/admin.css @@ -184,7 +184,7 @@ h3 {margin:0 20px} /* 폼 */ textarea, .frm_input {border:1px solid #ced9de;background:#f6f9fa;vertical-align:middle} textarea {padding:2px;width:90%} -.frm_input {height:22px;line-height:2em} +.frm_input {height:22px;line-height:1.8em} select {border:1px solid #ced9de} legend {position:absolute;width:0;height:0;font-size:0;line-height:0;text-indent:-9999em;border:0;overflow:hidden} @@ -796,4 +796,4 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right} #post_code #result ul {margin:0;padding:0;border-bottom:1px solid #dde4e9;background:#f0f5fc;list-style:none} #post_code #result li {padding:10px;border:1px solid #dde4e9;border-bottom:0} #post_code #result li div {margin:4px 0 0;color:#738D94} -#post_code #result li div:before {content:"▶ "} \ No newline at end of file +#post_code #result li div:before {content:"▶ "}