mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
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:
parent
42cb958d66
commit
520e5fac7e
1 changed files with 14 additions and 0 deletions
|
|
@ -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">');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue