git-svn-id: http://xe-core.googlecode.com/svn/trunk@658 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-26 08:01:55 +00:00
parent 749dc4a9ab
commit ed4637125a
5 changed files with 23 additions and 2 deletions

View file

@ -8,5 +8,6 @@
<action name="procCall" type="controller" standalone="true" />
<action name="procEnableComponent" type="controller" standalone="true" />
<action name="procDisableComponent" type="controller" standalone="true" />
<action name="procMoveListOrder" type="controller" standalone="true" />
</actions>
</module>

View file

@ -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를 실행
**/

View file

@ -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;

View file

@ -30,8 +30,8 @@
<a href="#" onclick="doEnableComponent('{$component_name}');return false;">{$lang->use}</a>
<!--@end-->
</td>
<td><a href="#">{$lang->cmd_move_up}</a></td>
<td><a href="#">{$lang->cmd_move_down}</a></td>
<td><a href="#" onclick="doMoveListOrder('{$component_name}','up'); return false;">{$lang->cmd_move_up}</a></td>
<td><a href="#" onclick="doMoveListOrder('{$component_name}','down'); return false;">{$lang->cmd_move_down}</a></td>
</tr>
<tr>
<td colspan="7">{nl2br($xml_info->description)}</td>

View file

@ -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;