mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
45 lines
No EOL
956 B
JavaScript
45 lines
No EOL
956 B
JavaScript
function doGetSkinColorset(skin, type) {
|
|
type = type == 'M' ? 'M' : 'P';
|
|
|
|
var params = {
|
|
'skin' : skin,
|
|
'type': type,
|
|
};
|
|
var response_tags = [ 'error', 'message', 'tpl' ];
|
|
|
|
function on_complete(ret) {
|
|
var $container = jQuery('#colorset');
|
|
|
|
if(type == 'M'){
|
|
$container = jQuery('#mcolorset');
|
|
}
|
|
|
|
var old_h = $container.is(':visible') ? $container.outerHeight() : 0;
|
|
|
|
if(ret.tpl == ''){
|
|
$container.hide();
|
|
}else{
|
|
$container.show();
|
|
var $colorset = jQuery('#message_colorset');
|
|
|
|
if(type == 'M'){
|
|
$colorset = jQuery('#message_mcolorset');
|
|
}
|
|
|
|
$colorset.html(ret.tpl);
|
|
}
|
|
|
|
var new_h = $container.is(':visible') ? $container.outerHeight() : 0;
|
|
|
|
try {
|
|
fixAdminLayoutFooter(new_h - old_h)
|
|
} catch (e) {};
|
|
}
|
|
|
|
exec_xml('message', 'getMessageAdminColorset', params, on_complete, response_tags);
|
|
}
|
|
|
|
jQuery(function($){
|
|
doGetSkinColorset($('#skin').val());
|
|
doGetSkinColorset($('#mskin').val(), 'M');
|
|
}); |