issue 160 don't move menu in admin menu.

this bug fixed


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9320 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-09-26 05:11:47 +00:00
parent 42cb958d66
commit 520e5fac7e

View file

@ -51,6 +51,20 @@ jQuery(function($){
// menu - drag and drop
jQuery(function($){
$('form.siteMap')
.delegate('li:not(.placeholder)', 'dropped.st', function() {
var $this = $(this), $pkey, $mkey, is_child;
$pkey = $this.find('>input._parent_key');
is_child = !!$this.parent('ul').parent('li').length;
if(is_child) {
$pkey.val($this.parent('ul').parent('li').find('>input._item_key').val());
} else {
$pkey.val('0');
}
})
var
dragging = false,
$holder = $('<li class="placeholder">');