mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
As now, a child menu can be appended on its parent menu row
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9615 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aa4b84f666
commit
fec2185570
2 changed files with 12 additions and 6 deletions
|
|
@ -125,9 +125,13 @@ $('form.siteMap')
|
||||||
|
|
||||||
$('a._add').click(function()
|
$('a._add').click(function()
|
||||||
{
|
{
|
||||||
editForm.find('.h2').html('Add Menu');
|
var $this = $(this);
|
||||||
editForm.find('input[name=menu_srl]').val($(this).parents().prevAll('input[name=menu_srl]').val());
|
|
||||||
resetEditForm();
|
resetEditForm();
|
||||||
|
|
||||||
|
editForm.find('.h2').html('Add Menu');
|
||||||
|
editForm.find('input[name=menu_srl]').val($this.closest('form').find('input[name=menu_srl]:first').val());
|
||||||
|
editForm.find('input[name=parent_srl]').val($this.parent().prevAll('input._item_key').val());
|
||||||
});
|
});
|
||||||
|
|
||||||
$('input._typeCheck').click(typeCheck);
|
$('input._typeCheck').click(typeCheck);
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,12 @@
|
||||||
<input type="hidden" name="parent_key[]" value="{$item['parent_srl']}" class="_parent_key" />
|
<input type="hidden" name="parent_key[]" value="{$item['parent_srl']}" class="_parent_key" />
|
||||||
<input type="hidden" name="item_key[]" value="{$item['node_srl']}" class="_item_key" />
|
<input type="hidden" name="item_key[]" value="{$item['node_srl']}" class="_item_key" />
|
||||||
<!--@if($item['href'])--><a href="{$item['href']}" class="ms" target="_blank">{$item['text']}</a><!--@else-->{$item['text']}<!--@end-->
|
<!--@if($item['href'])--><a href="{$item['href']}" class="ms" target="_blank">{$item['text']}</a><!--@else-->{$item['text']}<!--@end-->
|
||||||
<!--@if($item['setup_index_act'])-->
|
<span class="side">
|
||||||
<a href="{getUrl('', 'module', 'admin', 'act', $item['setup_index_act'], 'module_srl', $item['module_srl'])}" class="iSetting">Setting</a>
|
<block cond="$item['setup_index_act']"><a href="{getUrl('', 'module', 'admin', 'act', $item['setup_index_act'], 'module_srl', $item['module_srl'])}">{$lang->cmd_setup}</a> |</block>
|
||||||
<!--@end-->
|
<a href="#editMenu" class="modalAnchor _edit">{$lang->cmd_edit}</a> |
|
||||||
<span class="side"><a href="#editMenu" class="modalAnchor _edit">{$lang->cmd_edit}</a> | <a href="#delete" class="_delete">{$lang->cmd_delete}</a></span>
|
<a href="#delete" class="_delete">{$lang->cmd_delete}</a> |
|
||||||
|
<a href="#editMenu" class="modalAnchor _add _child">{$lang->add}</a>
|
||||||
|
</span>
|
||||||
<ul cond="count($item['list']>0)">
|
<ul cond="count($item['list']>0)">
|
||||||
<block loop="$item['list']=>$idx,$val">
|
<block loop="$item['list']=>$idx,$val">
|
||||||
{@$item = $val}
|
{@$item = $val}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue