mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 19:12:42 +00:00
allowDrop() returns false, stop propergation on drop
This commit is contained in:
parent
d0b6038e5f
commit
cbd28d12b7
|
@ -120,7 +120,7 @@ $(document).ready( function() {
|
||||||
|
|
||||||
function allowDrop(ev) {
|
function allowDrop(ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
// console.log(ev);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDragStartDocument(ev) {
|
function onDragStartDocument(ev) {
|
||||||
|
@ -137,6 +137,7 @@ function onDragStartFolder(ev) {
|
||||||
|
|
||||||
function onDrop(ev) {
|
function onDrop(ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
ev.stopPropagation();
|
||||||
attr_rel = $(ev.currentTarget).attr('rel');
|
attr_rel = $(ev.currentTarget).attr('rel');
|
||||||
target_type = attr_rel.split("_")[0];
|
target_type = attr_rel.split("_")[0];
|
||||||
target_id = attr_rel.split("_")[1];
|
target_id = attr_rel.split("_")[1];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user