some fixes
This commit is contained in:
@@ -131,7 +131,7 @@ function handleDrop(e) {
|
||||
|
||||
if (itemId && newColumnId) {
|
||||
if (moveUrl) {
|
||||
console.log('Moving deal:', itemId, 'to stage:', newColumnId);
|
||||
console.log('Moving item:', itemId, 'to column:', newColumnId);
|
||||
|
||||
// Находим перетаскиваемую карточку
|
||||
const draggedCard = document.querySelector(`.kanban-card[data-item-id="${itemId}"]`);
|
||||
@@ -145,7 +145,7 @@ function handleDrop(e) {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'X-Requested-With': 'XMLHttpRequest'
|
||||
},
|
||||
body: 'deal_id=' + itemId + '&stage_id=' + newColumnId
|
||||
body: 'id=' + itemId + '&column_id=' + newColumnId
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
|
||||
Reference in New Issue
Block a user