UI refactoring communication module

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11983 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-10-31 05:50:49 +00:00
parent d3672fda8f
commit 735c2fa848
7 changed files with 132 additions and 75 deletions

View file

@ -1,14 +1,32 @@
/* 스킨 컬러셋 구해옴 */
function doGetSkinColorset(skin) {
function doGetSkinColorset(skin, type) {
var params = new Array();
params['skin'] = skin;
params['type'] = type;
var response_tags = new Array('error','message','tpl');
var response_tags = new Array('error','message','tpl', 'type');
exec_xml('communication', 'getCommunicationAdminColorset', params, doDisplaySkinColorset, response_tags);
}
function doDisplaySkinColorset(ret_obj) {
var tpl = ret_obj["tpl"];
jQuery('#communication_colorset').html(tpl);
var type = ret_obj['type'];
var $controls = null;
var $control_group = null;
if(type == 'P'){
$controls = jQuery('#communication_colorset');
$control_group = jQuery('#__skin_colorset');
}else{
$controls = jQuery('#communication_mcolorset');
$control_group = jQuery('#__mskin_colorset');
}
$controls.html(tpl);
if(tpl){
$control_group.show();
}else{
$control_group.hide();
}
}