function EnableDragAndDrop()
{
//Fix problem with parent nodes follows its childs
$.extend($.ui.draggable.prototype, (function (orig) {
return {
_mouseCapture: function (event) {
var result = orig.call(this, event);
if (result && $.browser.msie) event.stopPropagation();
return result;
}
};
})($.ui.draggable.prototype["_mouseCapture"]));
$('.draggable').draggable({
revert: 'invalid',
helper: 'clone',
appendTo: 'body',
drag: function(event, ui) {
}
});
$('.droppable').droppable({
drop: function(ev, ui) {
alert('dropped');
}
});
}