From de72a6da5399d3d369387427482d7657022f166b Mon Sep 17 00:00:00 2001 From: ovclas Date: Fri, 5 Aug 2011 05:35:20 +0000 Subject: [PATCH] issue 70 admin menu setup in admin configuration modified git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8727 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/admin/tpl/js/menu_setup.js | 20 ++++++----- modules/admin/tpl/menu_setup.html | 16 ++++----- modules/menu/lang/en.lang.php | 1 + modules/menu/lang/es.lang.php | 1 + modules/menu/lang/fr.lang.php | 1 + modules/menu/lang/jp.lang.php | 1 + modules/menu/lang/ko.lang.php | 1 + modules/menu/lang/ru.lang.php | 1 + modules/menu/lang/tr.lang.php | 1 + modules/menu/lang/vi.lang.php | 1 + modules/menu/lang/zh-CN.lang.php | 1 + modules/menu/lang/zh-TW.lang.php | 1 + modules/menu/menu.admin.controller.php | 46 ++++++++++++++++++-------- 13 files changed, 63 insertions(+), 29 deletions(-) diff --git a/modules/admin/tpl/js/menu_setup.js b/modules/admin/tpl/js/menu_setup.js index ee6098396..f85ef04ec 100644 --- a/modules/admin/tpl/js/menu_setup.js +++ b/modules/admin/tpl/js/menu_setup.js @@ -4,7 +4,7 @@ jQuery(function($){ var editForm = $('#editForm'); var listForm = $('#listForm'); - $('button._add').click(function(){ + $('a._add').click(function(){ parentSrl = $(this).parent().prevAll('._parent_key').val(); editForm.find('input[name=parent_srl]').val(parentSrl); if(!menuList) @@ -17,25 +17,29 @@ jQuery(function($){ function completeGetActList(obj) { - menuList = obj.menuList; - if(menuList) + moduleList = obj.menuList; + if(moduleList) { var menuNameList = $('#menuNameList'); - for(var x in menuList) + for(var x in moduleList) { - var menu = menuList[x]; - menuNameList.append(''); + var menuList = moduleList[x]; + for(var y in menuList) + { + var menu = menuList[y]; + menuNameList.append(''); + } } } } - $('button._parent_delete').click(function() { + $('a._parent_delete').click(function() { var menu_item_srl = $(this).parent().prevAll('._parent_key').val(); listForm.find('input[name=menu_item_srl]').val(menu_item_srl); listForm.submit(); }); - $('button._child_delete').click(function() { + $('a._child_delete').click(function() { var menu_item_srl = $(this).parents('li').prevAll('._child_key').val(); listForm.find('input[name=menu_item_srl]').val(menu_item_srl); listForm.submit(); diff --git a/modules/admin/tpl/menu_setup.html b/modules/admin/tpl/menu_setup.html index e2e761f95..64c0bc3b5 100644 --- a/modules/admin/tpl/menu_setup.html +++ b/modules/admin/tpl/menu_setup.html @@ -1,23 +1,27 @@ +
-
+
+

{$XE_VALIDATOR_MESSAGE}

+
+

Admin Menu Setup

-
+

-
- - -