issue 160 admin setup bug fix

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9154 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-09-15 07:57:00 +00:00
parent 562b227f74
commit ea20e214ba
5 changed files with 13 additions and 8 deletions

View file

@ -5,7 +5,7 @@ jQuery(function($){
var listForm = $('#listForm');
$('a._add').click(function(){
parentSrl = $(this).parent().prevAll('._parent_key').val();
parentSrl = $(this).parent().prevAll('._item_key').val();
editForm.find('input[name=parent_srl]').val(parentSrl);
if(!menuList)
{
@ -40,7 +40,7 @@ jQuery(function($){
});
$('a._child_delete').click(function() {
var menu_item_srl = $(this).parents('li').find('._child_key').val();
var menu_item_srl = $(this).parents('li').find('._item_key').val();
listForm.find('input[name=menu_item_srl]').val(menu_item_srl);
listForm.submit();
});