mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5785 201d5d3c-b55e-5fd7-737f-ddc643e51545
43 lines
1.3 KiB
JavaScript
43 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) {
|
|
location.reload();
|
|
}
|
|
|
|
function doSetupComponent(component_name) {
|
|
popopen(request_uri.setQuery('module','editor').setQuery('act','dispEditorAdminSetupComponent').setQuery('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;
|
|
}
|
|
}
|