allowDrop() returns false, stop propergation on drop

This commit is contained in:
Uwe Steinmann 2013-02-26 08:23:29 +01:00
parent d0b6038e5f
commit cbd28d12b7

View File

@ -120,7 +120,7 @@ $(document).ready( function() {
function allowDrop(ev) {
ev.preventDefault();
// console.log(ev);
return false;
}
function onDragStartDocument(ev) {
@ -137,6 +137,7 @@ function onDragStartFolder(ev) {
function onDrop(ev) {
ev.preventDefault();
ev.stopPropagation();
attr_rel = $(ev.currentTarget).attr('rel');
target_type = attr_rel.split("_")[0];
target_id = attr_rel.split("_")[1];