mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Clean up message module config JS
This commit is contained in:
parent
b9a512c007
commit
ee5418d9d5
3 changed files with 9 additions and 29 deletions
|
|
@ -441,6 +441,7 @@ class Cleanup extends Base
|
|||
'modules/install/tpl/js/install_admin.js' => 'deleted:xe',
|
||||
'modules/integration_search/skins/default/trackback.html' => 'deleted',
|
||||
'modules/member/skins/default/filter/find_member_account_by_question.xml' => 'deleted:xe',
|
||||
'modules/message/tpl/filter/' => 'deleted:xe',
|
||||
'modules/module/schemas/site_admin.xml' => 'deleted',
|
||||
'modules/module/tpl/css/module_admin.less' => 'deleted',
|
||||
'modules/page/page.wap.php' => 'deleted:xe',
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
<filter name="insert_config" module="message" act="procMessageAdminInsertConfig" confirm_msg_code="confirm_submit">
|
||||
<form />
|
||||
<response callback_func="completeMessage">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -5,41 +5,27 @@ function doGetSkinColorset(skin, type) {
|
|||
'skin' : skin,
|
||||
'type': type,
|
||||
};
|
||||
var response_tags = [ 'error', 'message', 'tpl' ];
|
||||
|
||||
function on_complete(ret) {
|
||||
var $container = jQuery('#colorset');
|
||||
|
||||
if(type == 'M'){
|
||||
$container = jQuery('#mcolorset');
|
||||
}
|
||||
|
||||
Rhymix.ajax('message.getMessageAdminColorset', params).then(function(ret) {
|
||||
var $container = type == 'M' ? $('#mcolorset') : $('#colorset');
|
||||
var old_h = $container.is(':visible') ? $container.outerHeight() : 0;
|
||||
|
||||
if(ret.tpl == ''){
|
||||
if (ret.tpl == '') {
|
||||
$container.hide();
|
||||
}else{
|
||||
} else {
|
||||
$container.show();
|
||||
var $colorset = jQuery('#message_colorset');
|
||||
|
||||
if(type == 'M'){
|
||||
$colorset = jQuery('#message_mcolorset');
|
||||
}
|
||||
|
||||
var $colorset = (type == 'M') ? $('#message_mcolorset') : $('#message_colorset');
|
||||
$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($){
|
||||
$(function() {
|
||||
doGetSkinColorset($('#skin').val());
|
||||
doGetSkinColorset($('#mskin').val(), 'M');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue