mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 21:59:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1257 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
875f2d87a1
commit
dc6fcf3fe0
9 changed files with 78 additions and 17 deletions
|
|
@ -1,8 +1,10 @@
|
|||
<!--%import("filter/insert_comment.xml")-->
|
||||
|
||||
<!-- 댓글 정보 출력 -->
|
||||
<a name="comment_top_{$document_srl}"></a>
|
||||
<a name="comment_top_{$document->document_srl}"></a>
|
||||
|
||||
<!-- 댓글 출력 -->
|
||||
<div id="comment_{$document_srl}" style="display:none">
|
||||
<div id="comment_{$document->document_srl}" style="display:none">
|
||||
<!-- 댓글 목록 -->
|
||||
|
||||
<!--@if($document->comment_list)-->
|
||||
|
|
@ -65,6 +67,6 @@
|
|||
|
||||
<!-- 댓글 입력 폼 -->
|
||||
<!--@if($grant->write_comment && $document->lock_comment == 'N')-->
|
||||
<div id="comment_form_{$document_srl}"></div>
|
||||
<div id="comment_form_{$document->document_srl}"></div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
<!--%import("filter/insert_comment.xml")-->
|
||||
|
||||
<!--@if($source_comment)-->
|
||||
<!--#include("header.html")-->
|
||||
<!--@else-->
|
||||
<!--%import("js/blog.js")-->
|
||||
<!--@end-->
|
||||
|
||||
|
|
|
|||
|
|
@ -6,19 +6,52 @@
|
|||
|
||||
/**
|
||||
* 댓글 오픈
|
||||
* 댓글의 경우 editor를 동반해서 불러야 하기에 ajax로 tpl파일을 가져와서 쓰는걸로 한다.
|
||||
**/
|
||||
var _opend_comment = new Array();
|
||||
function doDisplayComment(document_srl) {
|
||||
var comment_zone = xGetElementById('comment_'+document_srl);
|
||||
if(comment_zone.style.display == "none") comment_zone.style.display = "block";
|
||||
|
||||
// 닫혀 있는 상태라면 한번이라도 열렸었는지 검사하여 열린적이 없다면 에디터를 가져온다
|
||||
if(comment_zone.style.display != "block") {
|
||||
if(!_opend_comment[document_srl]) {
|
||||
_opend_comment[document_srl] = true;
|
||||
doGetCommentEditorForm(document_srl);
|
||||
}
|
||||
comment_zone.style.display = "block";
|
||||
}
|
||||
else comment_zone.style.display = "none";
|
||||
}
|
||||
|
||||
function doGetCommentEditorForm(document_srl) {
|
||||
var params = new Array();
|
||||
params['document_srl'] = document_srl;
|
||||
|
||||
var response_tags = new Array('error','message','document_srl','upload_target_srl','tpl');
|
||||
exec_xml('blog','getBlogCommentEditorForm', params, completeCommentEditorForm, response_tags);
|
||||
}
|
||||
|
||||
var editor_path = "./modules/editor/tpl";
|
||||
function completeCommentEditorForm(ret_obj) {
|
||||
var document_srl = ret_obj['document_srl'];
|
||||
var upload_target_srl = ret_obj['upload_target_srl'];
|
||||
var tpl = ret_obj['tpl'];
|
||||
var comment_form_zone = xGetElementById('comment_form_'+document_srl);
|
||||
if(!comment_form_zone) return;
|
||||
|
||||
// tpl 입력
|
||||
xInnerHtml(comment_form_zone, tpl);
|
||||
|
||||
// 에디터 실행
|
||||
editorStart(upload_target_srl);
|
||||
}
|
||||
|
||||
/**
|
||||
* 엮인글 오픈
|
||||
**/
|
||||
function doDisplayTrackback(document_srl) {
|
||||
var trackback_zone = xGetElementById('trackback_'+document_srl);
|
||||
if(trackback_zone.style.display == "none") trackback_zone.style.display = "block";
|
||||
if(trackback_zone.style.display != "block") trackback_zone.style.display = "block";
|
||||
else trackback_zone.style.display = "none";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<!-- 엮인글 목록 -->
|
||||
<div id="trackback_{$document_srl}" style="display:none">
|
||||
<div id="trackback_{$document->document_srl}" style="display:none">
|
||||
<!--@if($document->trackback_list)-->
|
||||
<!--@foreach($document->trackback_list as $key => $val)-->
|
||||
<a name="trackback_{$val->trackback_srl}"></a>
|
||||
|
|
|
|||
|
|
@ -105,8 +105,8 @@
|
|||
|
||||
<!-- 댓글/ 엮인글 정보 출력 -->
|
||||
<div>
|
||||
<a href="#" onclick="doDisplayComment('{$document_srl}');return false;">{$lang->comment} : {count($document->comment_list)}</a>,
|
||||
<a href="#" onclick="doDisplayTrackback('{$document_srl}');return false;">{$lang->trackback} : {count($document->trackback_list)}</a>
|
||||
<a href="#" onclick="doDisplayComment('{$document->document_srl}');return false;">{$lang->comment} : {count($document->comment_list)}</a>,
|
||||
<a href="#" onclick="doDisplayTrackback('{$document->document_srl}');return false;">{$lang->trackback} : {count($document->trackback_list)}</a>
|
||||
</div>
|
||||
|
||||
<!-- 엮인글 파일 include -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue