/* NHN (developers@xpressengine.com) */ jQuery(function($){ var dragging = false, $holder = $('
  • '); $('form.siteMap') .delegate('li:not(.placeholder)', { 'mousedown.st' : function(event) { var $this, $uls, $ul, width, height, offset, position, offsets, i, dropzone, wrapper=''; if($(event.target).is('a,input,label,textarea') || event.which != 1) return; dragging = true; $this = $(this); height = $this.height(); width = $this.width(); $uls = $this.parentsUntil('.siteMap').filter('ul'); $ul = $uls.eq(-1); $ul.css('position', 'relative'); position = {x:event.pageX, y:event.pageY}; offset = getOffset(this, $ul.get(0)); $clone = $this.clone(true).attr('target', true); for(i=$uls.length-1; i; i--) { $clone = $clone.wrap('