Changeset 5588

Show
Ignore:
Timestamp:
03/10/08 22:55:00 (7 months ago)
Author:
inureyes
Message:

#873

  • 댓글 목록에서 바로 댓글달기 지원
  • 버튼은 그라피티에님께 패스~
Location:
trunk/interface
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/comment/comment/index.php

    r5557 r5588  
    7777            $tempRecentComments = revertTempTags(getRecentCommentsView(getRecentComments($blogid), $skin->recentComments)); 
    7878?> 
     79        try { 
    7980        var obj = opener.document.getElementById("entry<?php echo $comment['entry'];?>Comment"); 
    8081        obj.innerHTML = "<?php echo str_innerHTML($tempComments);?>"; 
     82        } catch(e) { } 
    8183        try { 
    8284        obj = opener.document.getElementById("recentComments"); 
     
    9698        if (obj != null) obj.innerHTML = "<?php echo str_innerHTML($commentCount);?>"; 
    9799        } catch(e) { } 
     100        try { 
     101        obj = opener.document.getElementById('list-form'); 
     102        if(obj != null) opener.document.getElementById('list-form').submit(); 
     103        } catch(e) { } 
    98104        window.close(); 
    99105    //]]> 
  • trunk/interface/owner/entry/comment/index.php

    r5285 r5588  
    1717        'name' => array('string', 'mandatory' => false), 
    1818        'page' => array('int', 1, 'default' => 1), 
    19         'ip' => array('ip', 'mandatory' => false), 
     19        'ip' => array('ip', 'mandatory' => false) 
    2020    ), 
    2121    'POST' => array( 
     
    3939$ip = isset($_POST['ip']) && !empty($_POST['ip']) ? $_POST['ip'] : $ip; 
    4040$search = empty($_POST['withSearch']) || empty($_POST['search']) ? '' : trim($_POST['search']); 
    41 $perPage = getBlogSetting('rowsPerPage', 10);  
     41$perPage = getBlogSetting('rowsPerPage', 10); 
    4242if (isset($_POST['perPage']) && is_numeric($_POST['perPage'])) { 
    4343    $perPage = $_POST['perPage']; 
     
    203203                             
    204204                            <form id="list-form" method="post" action="<?php echo $blogURL;?>/owner/entry/comment"> 
     205<?php 
     206    if(isset($_POST['ip'])) echo '                              <input type="hidden" name="ip" value="'.$_POST['ip'].'" />'.CRLF; 
     207    if(isset($_POST['name'])) echo '                                <input type="hidden" name="name" value="'.$_POST['name'].'" />'.CRLF; 
     208    if(isset($_POST['category'])) echo '                                <input type="hidden" name="category" value="'.$_POST['category'].'" />'.CRLF; 
     209    if(isset($_POST['search'])) echo '                              <input type="hidden" name="search" value="'.$_POST['search'].'" />'.CRLF; 
     210    if(isset($_POST['withSearch'])) echo '                              <input type="hidden" name="withSearch" value="'.$_POST['withSearch'].'" />'.CRLF; 
     211?> 
    205212                                <table class="data-inbox" cellspacing="0" cellpadding="0"> 
    206213                                    <thead> 
     
    281288                                                <?php echo ((!empty($comment['title']) || !empty($comment['parent'])) ? '<br />' : '');?> 
    282289                                                <?php echo htmlspecialchars($comment['comment']);?> 
     290<?php 
     291    if(empty($comment['parent'])) echo '<span class="reply"><a href="#" onclick="commentComment('.$comment['id'].');return false;">'._t('이 댓글에 댓글을 씁니다.').'</a></span>'; 
     292?> 
    283293                                            </td> 
    284294                                            <td class="ip">