mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
034a5c0288
commit
f70ce644ce
1410 changed files with 7188 additions and 53541 deletions
45
modules/message/tpl/js/config.js
Normal file
45
modules/message/tpl/js/config.js
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
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');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue