mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Fix drag lists did not work. Part 2.
Thanks to xet7 !
This commit is contained in:
parent
8662c96d1c
commit
0cebd8aa4d
1 changed files with 0 additions and 10 deletions
|
|
@ -730,7 +730,6 @@ setTimeout(() => {
|
||||||
|
|
||||||
const listDomElement = ui.item.get(0);
|
const listDomElement = ui.item.get(0);
|
||||||
if (!listDomElement) {
|
if (!listDomElement) {
|
||||||
console.error('List DOM element not found during drag stop');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -738,12 +737,10 @@ setTimeout(() => {
|
||||||
try {
|
try {
|
||||||
list = Blaze.getData(listDomElement);
|
list = Blaze.getData(listDomElement);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error getting list data:', error);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!list) {
|
if (!list) {
|
||||||
console.error('List data not found for element:', listDomElement);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -756,7 +753,6 @@ setTimeout(() => {
|
||||||
try {
|
try {
|
||||||
targetSwimlaneId = targetSwimlaneDom.attr('id').replace('swimlane-', '');
|
targetSwimlaneId = targetSwimlaneDom.attr('id').replace('swimlane-', '');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error getting target swimlane ID:', error);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -808,7 +804,6 @@ setTimeout(() => {
|
||||||
$set: updateData,
|
$set: updateData,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error updating list:', error);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -879,7 +874,6 @@ setTimeout(() => {
|
||||||
|
|
||||||
const listDomElement = ui.item.get(0);
|
const listDomElement = ui.item.get(0);
|
||||||
if (!listDomElement) {
|
if (!listDomElement) {
|
||||||
console.error('List DOM element not found during drag stop');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -887,12 +881,10 @@ setTimeout(() => {
|
||||||
try {
|
try {
|
||||||
list = Blaze.getData(listDomElement);
|
list = Blaze.getData(listDomElement);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error getting list data:', error);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!list) {
|
if (!list) {
|
||||||
console.error('List data not found for element:', listDomElement);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -905,7 +897,6 @@ setTimeout(() => {
|
||||||
try {
|
try {
|
||||||
targetSwimlaneId = targetSwimlaneDom.attr('id').replace('swimlane-', '');
|
targetSwimlaneId = targetSwimlaneDom.attr('id').replace('swimlane-', '');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error getting target swimlane ID:', error);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -957,7 +948,6 @@ setTimeout(() => {
|
||||||
$set: updateData,
|
$set: updateData,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error updating list:', error);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue