From ed4637125ac23f87df547f8ccf050b72e8c26a42 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 26 Mar 2007 08:01:55 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@658 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/conf/module.xml | 1 + modules/editor/editor.controller.php | 9 +++++++++ modules/editor/editor.model.php | 3 +++ modules/editor/tpl/admin_index.html | 4 ++-- modules/editor/tpl/js/admin.js | 8 ++++++++ 5 files changed, 23 insertions(+), 2 deletions(-) diff --git a/modules/editor/conf/module.xml b/modules/editor/conf/module.xml index 5aa0f5691..6f2d947b2 100644 --- a/modules/editor/conf/module.xml +++ b/modules/editor/conf/module.xml @@ -8,5 +8,6 @@ + diff --git a/modules/editor/editor.controller.php b/modules/editor/editor.controller.php index 5c330578f..aadc8c1da 100644 --- a/modules/editor/editor.controller.php +++ b/modules/editor/editor.controller.php @@ -63,6 +63,15 @@ $this->setMessage('success_updated'); } + /** + * @brief 컴포넌트의 위치 변경 + **/ + function doMoveListOrder() { + $args->component_name = Context::get('component_name'); + $args->mode = Context::get('mode'); + + } + /** * @brief 컴포넌트에서 ajax요청시 해당 컴포넌트의 method를 실행 **/ diff --git a/modules/editor/editor.model.php b/modules/editor/editor.model.php index c11638990..c4cd51701 100644 --- a/modules/editor/editor.model.php +++ b/modules/editor/editor.model.php @@ -41,6 +41,7 @@ // DB 목록을 loop돌면서 xml정보까지 구함 if(!is_array($db_list)) $db_list = array($db_list); foreach($db_list as $component) { + if(in_array($component->component_name, array('colorpicker_text','colorpicker_bg'))) continue; if(!$component->component_name) continue; $component_name = $component->component_name; @@ -64,6 +65,8 @@ // 다운로드된 목록의 xml_info를 마저 구함 foreach($downloaded_list as $component_name) { + if(in_array($component_name, array('colorpicker_text','colorpicker_bg'))) continue; + // 설정된 것이라면 패스 if($component_list->{$component_name}) continue; diff --git a/modules/editor/tpl/admin_index.html b/modules/editor/tpl/admin_index.html index 66390556d..b061a0b0b 100644 --- a/modules/editor/tpl/admin_index.html +++ b/modules/editor/tpl/admin_index.html @@ -30,8 +30,8 @@ {$lang->use} - {$lang->cmd_move_up} - {$lang->cmd_move_down} + {$lang->cmd_move_up} + {$lang->cmd_move_down} {nl2br($xml_info->description)} diff --git a/modules/editor/tpl/js/admin.js b/modules/editor/tpl/js/admin.js index 485ad49c6..9c1ba1aa2 100644 --- a/modules/editor/tpl/js/admin.js +++ b/modules/editor/tpl/js/admin.js @@ -12,6 +12,14 @@ function doDisableComponent(component_name) { exec_xml('editor', 'procDisableComponent', params, completeUpdate); } +function doMoveListOrder(component_name, mode) { + var params = new Array(); + params['component_name'] = component_name; + params['mode'] = mode; + + exec_xml('editor', 'procMoveListOrder', params, completeUpdate); +} + function completeUpdate(ret_obj) { alert(ret_obj['message']); location.href = location.href;