From 9c2a5547b5cedaba8212ad4408bc79c598d280cc Mon Sep 17 00:00:00 2001 From: YJSoft Date: Wed, 29 Apr 2015 12:37:26 +0900 Subject: [PATCH] =?UTF-8?q?#1450=201.8=20=EC=9D=B4=ED=9B=84=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=A7=80=20=EA=B0=A4=EB=9F=AC=EB=A6=AC=20=EC=BB=B4?= =?UTF-8?q?=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EC=82=AC=EC=9A=A9=20=EB=B6=88?= =?UTF-8?q?=EA=B0=80=EB=8A=A5=ED=95=9C=20=EB=AC=B8=EC=A0=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/image_gallery/tpl/popup.js | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/modules/editor/components/image_gallery/tpl/popup.js b/modules/editor/components/image_gallery/tpl/popup.js index 5e848e38a..6a1101d81 100644 --- a/modules/editor/components/image_gallery/tpl/popup.js +++ b/modules/editor/components/image_gallery/tpl/popup.js @@ -1,4 +1,5 @@ var selected_node = null; +var files = []; function getSlideShow() { var node, $node, selected_images = '', width, style, align, border_color, bg_color, thickness; @@ -33,27 +34,23 @@ function getSlideShow() { // 부모창의 업로드된 파일중 이미지 목록을 모두 가져와서 세팅 var fo = get_by_id("fo"); var editor_sequence = fo.editor_sequence.value; + var list_obj = get_by_id("image_list"); - var parent_list_obj = opener.get_by_id("uploaded_file_list_"+editor_sequence); - if(parent_list_obj) { + jQuery.exec_json('file.getFileList', {'editor_sequence': editor_sequence}, function(res) { + jQuery.each(res.files, function (index, file) { + var file_srl = file.file_srl; - var list_obj = get_by_id("image_list"); - - for(var i=0;i