From a754922e08a365838e7aa6de95800f9a0fd46145 Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 27 Mar 2007 13:16:47 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@730 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/tpl/js/editor.js | 1 + modules/plugin/tpl.admin/js/admin.js | 72 +++++++++++++++++-- .../plugin_generate_code_in_page.html | 8 ++- 3 files changed, 74 insertions(+), 7 deletions(-) diff --git a/modules/editor/tpl/js/editor.js b/modules/editor/tpl/js/editor.js index 433225aa5..7d17c2c02 100755 --- a/modules/editor/tpl/js/editor.js +++ b/modules/editor/tpl/js/editor.js @@ -338,6 +338,7 @@ function editorSearchComponent(evt) { } var upload_target_srl = tobj.getAttribute("upload_target_srl"); var plugin = obj.getAttribute("plugin"); + editorPrevNode = obj; winopen("?module=plugin&act=dispGenerateCodeInPage&selected_plugin="+plugin+"&module_srl="+upload_target_srl,'GenerateCodeInPage','left=10,top10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no'); return; } diff --git a/modules/plugin/tpl.admin/js/admin.js b/modules/plugin/tpl.admin/js/admin.js index 7340a40c6..5509f10d0 100644 --- a/modules/plugin/tpl.admin/js/admin.js +++ b/modules/plugin/tpl.admin/js/admin.js @@ -25,7 +25,7 @@ function completeGenerateCodeInPage(ret_obj,response_tags,params,fo_obj) { } /* 플러그인 코드 생성시 스킨을 고르면 컬러셋의 정보를 표시 */ -function doDisplaySkinColorset(sel) { +function doDisplaySkinColorset(sel, colorset) { var skin = sel.options[sel.selectedIndex].value; if(!skin) { xGetElementById("colorset_area").style.display = "none"; @@ -36,25 +36,87 @@ function doDisplaySkinColorset(sel) { var params = new Array(); params["selected_plugin"] = xGetElementById("fo_plugin").selected_plugin.value; params["skin"] = skin; + params["colorset"] = colorset; var response_tags = new Array("error","message","colorset_list"); - exec_xml("plugin", "procGetColorsetList", params, completeGetSkinColorset, response_tags); + exec_xml("plugin", "procGetColorsetList", params, completeGetSkinColorset, response_tags, params); } -// 서버에서 받아온 컬러셋을 표시 -function completeGetSkinColorset(ret_obj) { - var sel = xGetElementById("fo_plugin").colorset; +/* 서버에서 받아온 컬러셋을 표시 */ +function completeGetSkinColorset(ret_obj, response_tags, params, fo_obj) { + var sel = xGetElementById("fo_plugin").plugin_colorset; var length = sel.options.length; + var selected_colorset = params["colorset"]; for(var i=0;i0) type = node[0].type; + else length = 0; + + switch(type) { + case "text" : + case "textarea" : + var val = selected_node.getAttribute(name); + node.value = val; + break; + case "checkbox" : + var val = selected_node.getAttribute(name); + for(var i=0;i{$lang->skin}
- @@ -28,7 +28,7 @@ @@ -70,3 +70,7 @@
+ +