mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 05:09:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@713 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f3fd2da4ae
commit
9be7431441
8 changed files with 136 additions and 37 deletions
|
|
@ -23,3 +23,36 @@ function completeGenerateCodeInPage(ret_obj,response_tags,params,fo_obj) {
|
|||
|
||||
window.close();
|
||||
}
|
||||
|
||||
/* 플러그인 코드 생성시 스킨을 고르면 컬러셋의 정보를 표시 */
|
||||
function doDisplaySkinColorset(sel) {
|
||||
var skin = sel.options[sel.selectedIndex].value;
|
||||
if(!skin) {
|
||||
xGetElementById("colorset_area").style.display = "none";
|
||||
return;
|
||||
}
|
||||
|
||||
var params = new Array();
|
||||
params["selected_plugin"] = xGetElementById("fo_plugin").selected_plugin.value;
|
||||
params["skin"] = skin;
|
||||
|
||||
var response_tags = new Array("error","message","colorset_list");
|
||||
|
||||
exec_xml("plugin", "procGetColorsetList", params, completeGetSkinColorset, response_tags);
|
||||
}
|
||||
|
||||
// 서버에서 받아온 컬러셋을 표시
|
||||
function completeGetSkinColorset(ret_obj) {
|
||||
var sel = xGetElementById("fo_plugin").colorset;
|
||||
var length = sel.options.length;
|
||||
for(var i=0;i<length;i++) sel.remove(0);
|
||||
|
||||
var colorset_list = ret_obj["colorset_list"].split("\n");
|
||||
for(var i=0;i<colorset_list.length;i++) {
|
||||
var tmp = colorset_list[i].split("|@|");
|
||||
var opt = new Option(tmp[1], tmp[0], false, false);
|
||||
sel.options.add(opt);
|
||||
}
|
||||
|
||||
xGetElementById("colorset_area").style.display = "block";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue