submit 후 submit button 을 disabled 함

This commit is contained in:
gnuboard
2013-05-02 16:07:26 +09:00
parent 53e4399a40
commit 4c573d0ab0
3 changed files with 8 additions and 2 deletions

View File

@ -116,7 +116,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<th scope="row">내용</th>
<td>
<?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?>
<textarea id="wr_content" name="wr_content" required
<textarea id="wr_content" name="wr_content" required title="댓글 내용"
<?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
</td>
@ -125,7 +125,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
</table>
<div class="btn_confirm">
<input type="submit" class="btn_submit" value="댓글등록">
<input type="submit" value="댓글등록" id="btn_submit" class="btn_submit" accesskey="s">
</div>
</form>
@ -233,6 +233,8 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<?php if($is_guest) echo chk_captcha_js(); ?>
document.getElementById("btn_submit").disabled = "disabled";
return true;
}

View File

@ -234,6 +234,8 @@ function fwrite_submit(f)
<?php if ($is_guest) { echo chk_captcha_js(); } ?>
document.getElementById("btn_submit").disabled = "disabled";
return true;
}
</script>

View File

@ -379,6 +379,8 @@ function fregisterform_submit(f)
<?php echo chk_captcha_js(); ?>
document.getElementById("btn_submit").disabled = "disabled";
return true;
}
</script>