댓글의 댓글 작성시 캡챠 출력되지 않는 오류 수정
This commit is contained in:
@ -32,7 +32,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
작성일
|
작성일
|
||||||
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
|
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
|
||||||
<?php
|
<?php
|
||||||
include(G5_SNS_PATH."/view_comment_list.sns.skin.php");
|
include(G5_SNS_PATH."/view_comment_list.sns.skin.php");
|
||||||
?>
|
?>
|
||||||
</header>
|
</header>
|
||||||
@ -116,7 +116,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
<td><?php echo $captcha_html; ?></td>
|
<td><?php echo $captcha_html; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php
|
<?php
|
||||||
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
|
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
@ -141,7 +141,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
var save_before = '';
|
var save_before = '';
|
||||||
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
var save_html;
|
||||||
|
|
||||||
function good_and_write()
|
function good_and_write()
|
||||||
{
|
{
|
||||||
@ -262,6 +262,8 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
|
|
||||||
if (save_before != el_id)
|
if (save_before != el_id)
|
||||||
{
|
{
|
||||||
|
save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||||
|
|
||||||
if (save_before)
|
if (save_before)
|
||||||
{
|
{
|
||||||
document.getElementById(save_before).style.display = 'none';
|
document.getElementById(save_before).style.display = 'none';
|
||||||
|
|||||||
@ -32,7 +32,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
작성일
|
작성일
|
||||||
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
|
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
|
||||||
<?php
|
<?php
|
||||||
include(G5_SNS_PATH."/view_comment_list.sns.skin.php");
|
include(G5_SNS_PATH."/view_comment_list.sns.skin.php");
|
||||||
?>
|
?>
|
||||||
</header>
|
</header>
|
||||||
@ -116,7 +116,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
<td><?php echo $captcha_html; ?></td>
|
<td><?php echo $captcha_html; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php
|
<?php
|
||||||
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
|
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
@ -141,7 +141,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
var save_before = '';
|
var save_before = '';
|
||||||
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
var save_html;
|
||||||
|
|
||||||
function good_and_write()
|
function good_and_write()
|
||||||
{
|
{
|
||||||
@ -262,6 +262,8 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
|
|
||||||
if (save_before != el_id)
|
if (save_before != el_id)
|
||||||
{
|
{
|
||||||
|
save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||||
|
|
||||||
if (save_before)
|
if (save_before)
|
||||||
{
|
{
|
||||||
document.getElementById(save_before).style.display = 'none';
|
document.getElementById(save_before).style.display = 'none';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
$(function(){
|
$(function(){
|
||||||
var mp3_url = "";
|
var mp3_url = "";
|
||||||
|
|
||||||
$("#captcha_reload").bind("click", function(){
|
$("#captcha_reload").live("click", function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: g5_captcha_url+'/kcaptcha_session.php',
|
url: g5_captcha_url+'/kcaptcha_session.php',
|
||||||
@ -26,7 +26,7 @@ $(function(){
|
|||||||
});
|
});
|
||||||
}).trigger("click");
|
}).trigger("click");
|
||||||
|
|
||||||
$("#captcha_mp3").click(function(){
|
$("#captcha_mp3").live("click", function(){
|
||||||
$("body").css("cursor", "wait");
|
$("body").css("cursor", "wait");
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -50,13 +50,13 @@ $(function(){
|
|||||||
wav.controls = false;
|
wav.controls = false;
|
||||||
wav.autobuffer = false;
|
wav.autobuffer = false;
|
||||||
wav.loop = false;
|
wav.loop = false;
|
||||||
|
|
||||||
if ($("#mp3_audio").length) $("#mp3_audio").remove();
|
if ($("#mp3_audio").length) $("#mp3_audio").remove();
|
||||||
$("#captcha_mp3").after(wav);
|
$("#captcha_mp3").after(wav);
|
||||||
|
|
||||||
html5use = true;
|
html5use = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!html5use) {
|
if (!html5use) {
|
||||||
var object = '<object id="mp3_object" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" height="0" width="0" style="width:0; height:0;">';
|
var object = '<object id="mp3_object" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" height="0" width="0" style="width:0; height:0;">';
|
||||||
object += '<param name="AutoStart" value="1" />';
|
object += '<param name="AutoStart" value="1" />';
|
||||||
@ -65,11 +65,11 @@ $(function(){
|
|||||||
object += '<param name="FileName" value="' + mp3_url + '" />';
|
object += '<param name="FileName" value="' + mp3_url + '" />';
|
||||||
object += '<embed id="mp3_embed" src="' + mp3_url + '" autoplay="true" hidden="true" volume="100" type="audio/x-wav" style="display:inline;" />';
|
object += '<embed id="mp3_embed" src="' + mp3_url + '" autoplay="true" hidden="true" volume="100" type="audio/x-wav" style="display:inline;" />';
|
||||||
object += '</object>';
|
object += '</object>';
|
||||||
if ($("#mp3_object").length)
|
if ($("#mp3_object").length)
|
||||||
$("#mp3_object").remove();
|
$("#mp3_object").remove();
|
||||||
$("#captcha_mp3").after(object);
|
$("#captcha_mp3").after(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
$("body").css("cursor", "default");
|
$("body").css("cursor", "default");
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ function chk_captcha()
|
|||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: g5_captcha_url+'/kcaptcha_result.php',
|
url: g5_captcha_url+'/kcaptcha_result.php',
|
||||||
data: {
|
data: {
|
||||||
'captcha_key': captcha_key.value
|
'captcha_key': captcha_key.value
|
||||||
},
|
},
|
||||||
cache: false,
|
cache: false,
|
||||||
async: false,
|
async: false,
|
||||||
|
|||||||
@ -124,7 +124,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
<td><?php echo $captcha_html; ?></td>
|
<td><?php echo $captcha_html; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php
|
<?php
|
||||||
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
|
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
@ -135,13 +135,13 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
<?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) { ?>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 } ?>
|
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
|
||||||
<script>
|
<script>
|
||||||
$("textarea#wr_content[maxlength]").live("keyup change", function() {
|
$("textarea#wr_content[maxlength]").live("keyup change", function() {
|
||||||
var str = $(this).val()
|
var str = $(this).val()
|
||||||
var mx = parseInt($(this).attr("maxlength"))
|
var mx = parseInt($(this).attr("maxlength"))
|
||||||
if (str.length > mx) {
|
if (str.length > mx) {
|
||||||
$(this).val(str.substr(0, mx));
|
$(this).val(str.substr(0, mx));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</td>
|
</td>
|
||||||
@ -159,7 +159,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
var save_before = '';
|
var save_before = '';
|
||||||
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
var save_html;
|
||||||
|
|
||||||
function good_and_write()
|
function good_and_write()
|
||||||
{
|
{
|
||||||
@ -270,6 +270,8 @@ function comment_box(comment_id, work)
|
|||||||
|
|
||||||
if (save_before != el_id)
|
if (save_before != el_id)
|
||||||
{
|
{
|
||||||
|
save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||||
|
|
||||||
if (save_before)
|
if (save_before)
|
||||||
{
|
{
|
||||||
document.getElementById(save_before).style.display = 'none';
|
document.getElementById(save_before).style.display = 'none';
|
||||||
|
|||||||
@ -124,7 +124,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
<td><?php echo $captcha_html; ?></td>
|
<td><?php echo $captcha_html; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php
|
<?php
|
||||||
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
|
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
@ -135,13 +135,13 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
<?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) { ?>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 } ?>
|
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
|
||||||
<script>
|
<script>
|
||||||
$("textarea#wr_content[maxlength]").live("keyup change", function() {
|
$("textarea#wr_content[maxlength]").live("keyup change", function() {
|
||||||
var str = $(this).val()
|
var str = $(this).val()
|
||||||
var mx = parseInt($(this).attr("maxlength"))
|
var mx = parseInt($(this).attr("maxlength"))
|
||||||
if (str.length > mx) {
|
if (str.length > mx) {
|
||||||
$(this).val(str.substr(0, mx));
|
$(this).val(str.substr(0, mx));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</td>
|
</td>
|
||||||
@ -159,7 +159,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
var save_before = '';
|
var save_before = '';
|
||||||
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
var save_html;
|
||||||
|
|
||||||
function good_and_write()
|
function good_and_write()
|
||||||
{
|
{
|
||||||
@ -270,6 +270,8 @@ function comment_box(comment_id, work)
|
|||||||
|
|
||||||
if (save_before != el_id)
|
if (save_before != el_id)
|
||||||
{
|
{
|
||||||
|
save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||||
|
|
||||||
if (save_before)
|
if (save_before)
|
||||||
{
|
{
|
||||||
document.getElementById(save_before).style.display = 'none';
|
document.getElementById(save_before).style.display = 'none';
|
||||||
|
|||||||
Reference in New Issue
Block a user