mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 11:19:56 +09:00
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
This commit is contained in:
parent
22dd2f0ea6
commit
de72a6da53
13 changed files with 63 additions and 29 deletions
|
|
@ -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('<option value="'+x+'">'+menu.title+'</option>');
|
||||
var menuList = moduleList[x];
|
||||
for(var y in menuList)
|
||||
{
|
||||
var menu = menuList[y];
|
||||
menuNameList.append('<option value="'+x+':'+y+'">'+menu.title+'</option>');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$('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();
|
||||
|
|
|
|||
|
|
@ -1,23 +1,27 @@
|
|||
<load target="./js/menu_setup.js" />
|
||||
<load target="./js/sitemap.js" />
|
||||
<div class="content" id="content">
|
||||
<form id="listForm" action="./">
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form id="listForm" action="./" class="siteMap">
|
||||
<input type="hidden" name="act" value="procMenuAdminDeleteItem" />
|
||||
<input type="hidden" name="menu_srl" value="{$menu_srl}" />
|
||||
<input type="hidden" name="menu_item_srl" value="" />
|
||||
<input type="hidden" name="success_return_url" value="{getUrl('', 'module', 'admin', 'act', 'dispAdminMenuSetup')}" />
|
||||
<h1 class="h1">Admin Menu Setup</h1>
|
||||
<div class="portlet siteMap">
|
||||
<div class="portlet">
|
||||
<h2 class="h2"><input value="Admin Menu" disabled /></h2>
|
||||
<ul class="lined">
|
||||
<!--@foreach($gnbUrlList AS $key=>$value)-->
|
||||
<li>
|
||||
<input type="hidden" value="{$key}" class="_parent_key" />
|
||||
<input value="{$value['text']}" /> <span class="side"> <button type="button" class="modalAnchor _add">Add</button> | <button type="button" class="_parent_delete">Delete</button></span>
|
||||
<input value="{$value['text']}" /> <span class="side"> <a href="#editMenu" class="modalAnchor _add">Add</a> | <a href="#delete" class="_parent_delete">Delete</a></span>
|
||||
<!--@if(is_array($value['list']) && count($value['list'])>0)-->
|
||||
<ul>
|
||||
<!--@foreach($value['list'] AS $key2=>$value2)-->
|
||||
<input type="hidden" value="{$key2}" class="_child_key" />
|
||||
<li><input value="{$value2['text']}" /> <span class="side"><button type="button" class="_child_delete">Delete</button></span></li>
|
||||
<li><input value="{$value2['text']}" /> <span class="side"><a href="#delete" class="_child_delete">Delete</a></span></li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
<!--@end-->
|
||||
|
|
@ -25,10 +29,6 @@
|
|||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
<div class="btnArea">
|
||||
<span class="btn medium"><input type="submit" value="Save it" /></span>
|
||||
<span class="btn medium"><button type="button">Add New Site Map...</button></span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="modal" id="editMenu">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue