submit 후 다시 submit 되지 않도록 btn_submit 을 disabled 로
This commit is contained in:
@ -168,16 +168,6 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
|
|
||||||
f.is_good.value = 0;
|
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 subject = "";
|
||||||
var content = "";
|
var content = "";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -249,6 +239,8 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
|
|
||||||
<?php if($is_guest) echo chk_captcha_js(); ?>
|
<?php if($is_guest) echo chk_captcha_js(); ?>
|
||||||
|
|
||||||
|
document.getElementById("btn_submit").disabled = "disabled";
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -70,15 +70,6 @@ if (!$board['bo_use_sns']) return;
|
|||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
$twitter_url = G4_SNS_URL."/twitter/redirect.php";
|
$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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -234,6 +234,8 @@ function fwrite_submit(f)
|
|||||||
|
|
||||||
<?php if ($is_guest) { echo chk_captcha_js(); } ?>
|
<?php if ($is_guest) { echo chk_captcha_js(); } ?>
|
||||||
|
|
||||||
|
document.getElementById("btn_submit").disabled = "disabled";
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -379,6 +379,8 @@ function fregisterform_submit(f)
|
|||||||
|
|
||||||
<?php echo chk_captcha_js(); ?>
|
<?php echo chk_captcha_js(); ?>
|
||||||
|
|
||||||
|
document.getElementById("btn_submit").disabled = "disabled";
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user