Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -421,6 +421,7 @@ $frm_submit .= '</div>';
|
||||
<tr>
|
||||
<th scope="row"><label for="bo_count_modify">원글 수정 불가<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<?php echo help('댓글의 수가 설정 수 이상이면 원글을 수정할 수 없습니다. 0으로 설정하시면 댓글 수에 관계없이 수정할 수있습니다.'); ?>
|
||||
댓글 <input type="text" name="bo_count_modify" value="<?php echo $board['bo_count_modify'] ?>" id="bo_count_modify" required class="required numeric frm_input" size="3">개 이상 달리면 수정불가
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
@ -1290,8 +1291,8 @@ function fboardform_submit(f)
|
||||
<?php echo get_editor_js("bo_mobile_content_head"); ?>
|
||||
<?php echo get_editor_js("bo_mobile_content_tail"); ?>
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
@ -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') {
|
||||
|
||||
@ -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:"▶ "}
|
||||
#post_code #result li div:before {content:"▶ "}
|
||||
|
||||
Reference in New Issue
Block a user