From b7f8e34a2e891446cfa1d345023a5ad41a9f235e Mon Sep 17 00:00:00 2001 From: bnu Date: Mon, 19 Apr 2010 10:42:59 +0000 Subject: [PATCH] =?UTF-8?q?#18847115=20-=20drEditor=EC=97=90=EC=84=9C=20fo?= =?UTF-8?q?ld=20=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EA=B8=B0=EB=8A=A5?= =?UTF-8?q?=20=EB=8F=99=EC=9E=91=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7373 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/common.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/common/js/common.js b/common/js/common.js index caf9fac93..a2917675b 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -248,6 +248,19 @@ jQuery(function($) { }); } + + /* 단락에디터 fold 컴포넌트 펼치기/접기 */ + var drEditorFold = $('.xe_content .fold_button'); + if(drEditorFold.size()) { + var fold_container = $('div.fold_container', drEditorFold); + $('button.more', drEditorFold).click(function() { + $(this).hide().next('button').show().parent().next(fold_container).show(); + }); + $('button.less', drEditorFold).click(function() { + $(this).hide().prev('button').show().parent().next(fold_container).hide(); + }); + } + });