mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 06:09:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@365 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b15b12a8c6
commit
fb8906710c
5 changed files with 27 additions and 15 deletions
|
|
@ -13,5 +13,6 @@
|
|||
<action name="procInsertLayoutMenu" type="controller" standalone="true" />
|
||||
<action name="procDeleteLayoutMenu" type="controller" standalone="true" />
|
||||
<action name="procMakeXmlFile" type="controller" standalone="true" />
|
||||
<action name="procMoveLayoutMenu" type="controller" standalone="true" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -190,6 +190,14 @@
|
|||
$this->add('menu_srl', $parent_srl);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 레이아웃의 메뉴를 이동
|
||||
**/
|
||||
function procMoveLayoutMenu() {
|
||||
$source_node_srl = Context::get('source_node_srl');
|
||||
$target_node_srl = Context::get('target_node_srl');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief xml 파일을 갱신
|
||||
* 관리자페이지에서 메뉴 구성 후 간혹 xml파일이 재생성 안되는 경우가 있는데\n
|
||||
|
|
|
|||
|
|
@ -4,9 +4,7 @@
|
|||
<response callback_func="completeMoveLayoutMenu">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="menu_title" />
|
||||
<tag name="menu_id" />
|
||||
<tag name="menu_srl" />
|
||||
<tag name="xml_file" />
|
||||
<tag name="source_node_srl" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
|
|||
|
|
@ -64,30 +64,34 @@ function doGetMenuInfo(menu_id, obj) {
|
|||
/* 메뉴를 드래그하여 이동한 후 실행할 함수 , 이동하는 node_srl과 대상 node_srl을 받음 */
|
||||
function doMoveTree(menu_id, source_node_srl, target_node_srl) {
|
||||
var fo_obj = xGetElementById("fo_move_menu");
|
||||
fo_obj.menu_id.value = menu_id;
|
||||
fo_obj.source_node_srl.value = source_node_srl;
|
||||
fo_obj.target_node_srl.value = target_node_srl;
|
||||
|
||||
// 이동 취소를 선택하였을 경우 다시 그림;;
|
||||
if(!procFilter(fo_obj, move_layout_menu)) {
|
||||
var fo_menu = xGetElementById("fo_"+menu_id);
|
||||
if(!fo_menu) return;
|
||||
|
||||
var params = new Array();
|
||||
params["menu_id"] = menu_id;
|
||||
params["layout"] = fo_menu.layout.value;
|
||||
params["layout_srl"] = fo_menu.layout_srl.value;
|
||||
var xml_file = fo_menu.xml_file.value;
|
||||
var menu_title = fo_menu.menu_title.value;
|
||||
var menu_srl = source_node_srl;
|
||||
loadTreeMenu(xml_file, menu_id, "menu_zone_"+menu_id, menu_title, doGetMenuInfo, menu_srl, doMoveTree);
|
||||
params["source_node_srl"] = source_node_srl;
|
||||
completeMoveLayoutMenu(params);
|
||||
}
|
||||
}
|
||||
|
||||
function completeMoveLayoutMenu(ret_obj) {
|
||||
var menu_title = ret_obj['menu_title'];
|
||||
var menu_id = ret_obj['menu_id'];
|
||||
var menu_srl = ret_obj['menu_srl'];
|
||||
var xml_file = ret_obj['xml_file'];
|
||||
var source_node_srl = ret_obj['source_node_srl'];
|
||||
|
||||
var fo_menu = xGetElementById("fo_"+menu_id);
|
||||
if(!fo_menu) return;
|
||||
|
||||
var params = new Array();
|
||||
params["menu_id"] = menu_id;
|
||||
params["layout"] = fo_menu.layout.value;
|
||||
params["layout_srl"] = fo_menu.layout_srl.value;
|
||||
var xml_file = fo_menu.xml_file.value;
|
||||
var menu_title = fo_menu.menu_title.value;
|
||||
var tmp = source_node_srl.split('_');
|
||||
var menu_srl = tmp[tmp.length-1];
|
||||
loadTreeMenu(xml_file, menu_id, "menu_zone_"+menu_id, menu_title, doGetMenuInfo, menu_srl, doMoveTree);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<!-- 메뉴 이동을 위해 임시로 사용하는 form -->
|
||||
<form id="fo_move_menu">
|
||||
<input type="hidden" name="menu_id" />
|
||||
<input type="hidden" name="source_node_srl" />
|
||||
<input type="hidden" name="target_node_srl" />
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue