mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4123 201d5d3c-b55e-5fd7-737f-ddc643e51545
44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
/**
|
|
* @author zero (zero@nzeo.com)
|
|
* @version 0.1
|
|
* @brief 에디터 관리자 페이지용 스크립트
|
|
**/
|
|
|
|
function doEnableComponent(component_name) {
|
|
var params = new Array();
|
|
params['component_name'] = component_name;
|
|
|
|
exec_xml('editor', 'procEditorAdminEnableComponent', params, completeUpdate);
|
|
}
|
|
|
|
function doDisableComponent(component_name) {
|
|
var params = new Array();
|
|
params['component_name'] = component_name;
|
|
|
|
exec_xml('editor', 'procEditorAdminDisableComponent', params, completeUpdate);
|
|
}
|
|
|
|
function doMoveListOrder(component_name, mode) {
|
|
var params = new Array();
|
|
params['component_name'] = component_name;
|
|
params['mode'] = mode;
|
|
|
|
exec_xml('editor', 'procEditorAdminMoveListOrder', params, completeUpdate);
|
|
}
|
|
|
|
function completeUpdate(ret_obj) {
|
|
alert(ret_obj['message']);
|
|
location.href = location.href;
|
|
}
|
|
|
|
function doSetupComponent(component_name) {
|
|
popopen("./?module=editor&act=dispEditorAdminSetupComponent&component_name="+component_name, "SetupComponent");
|
|
}
|
|
|
|
function toggleSectionCheckBox(obj, id) {
|
|
var box_list = xGetElementsByTagName('input', xGetElementById(id));
|
|
if(typeof(box_list.length)=='undefined') return;
|
|
for(var i in box_list) {
|
|
box_list[i].checked = obj.checked;
|
|
}
|
|
}
|