submit 후 다시 submit 되지 않도록 btn_submit 을 disabled 로

This commit is contained in:
gnuboard
2013-05-29 11:19:10 +09:00
parent eb46ea069b
commit 6315c80682
4 changed files with 6 additions and 19 deletions

View File

@ -168,16 +168,6 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
f.is_good.value = 0;
/*
var s;
if (s = word_filter_check(document.getElementById('wr_content').value))
{
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
document.getElementById('wr_content').focus();
return false;
}
*/
var subject = "";
var content = "";
$.ajax({
@ -249,6 +239,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

@ -70,15 +70,6 @@ if (!$board['bo_use_sns']) return;
break;
default :
$twitter_url = G4_SNS_URL."/twitter/redirect.php";
// 안먹히는 코드 ㅠㅠ
if ($member['mb_twitter_token'] && $member['mb_twitter_token_secret']) {
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $member['mb_twitter_token'], $member['mb_twitter_token_secret']);
$content = $connection->get('account/verify_credentials');
if (200 == $connection->http_code) {
$twitter_user = true;
$twitter_url = $connection->getAuthorizeURL($token);
}
}
}
}

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>