|
|
@ -59,6 +59,7 @@
|
|
|
|
dragEl: function (el, source) {},
|
|
|
|
dragEl: function (el, source) {},
|
|
|
|
dragendEl: function (el) {},
|
|
|
|
dragendEl: function (el) {},
|
|
|
|
dropEl: function (el, target, source, sibling) {},
|
|
|
|
dropEl: function (el, target, source, sibling) {},
|
|
|
|
|
|
|
|
dragcancelEl: function (el, boardId) {},
|
|
|
|
dragBoard: function (el, source) {},
|
|
|
|
dragBoard: function (el, source) {},
|
|
|
|
dragendBoard: function (el) {},
|
|
|
|
dragendBoard: function (el) {},
|
|
|
|
dropBoard: function (el, target, source, sibling) {},
|
|
|
|
dropBoard: function (el, target, source, sibling) {},
|
|
|
@ -157,15 +158,9 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.on('cancel', function (el, container, source) {
|
|
|
|
.on('cancel', function (el, container, source) {
|
|
|
|
console.log("In cancel");
|
|
|
|
console.log("In cancel");
|
|
|
|
if (confirm("Do you want to remove this item?")) {
|
|
|
|
// FIXME custom code
|
|
|
|
var board1 = self.options.boards.find(function (element) {
|
|
|
|
var boardId = source.parentNode.dataset.id;
|
|
|
|
return element.id == $(source.parentNode).attr("data-id");
|
|
|
|
self.options.dragcancelEl(el, boardId);
|
|
|
|
});
|
|
|
|
|
|
|
|
var pos1 = self.dragItemPos;
|
|
|
|
|
|
|
|
board1.item.splice(pos1, 1);
|
|
|
|
|
|
|
|
$(el).remove();
|
|
|
|
|
|
|
|
self.onChange();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.on('drop', function (el, target, source, sibling) {
|
|
|
|
.on('drop', function (el, target, source, sibling) {
|
|
|
|
console.log("In drop");
|
|
|
|
console.log("In drop");
|
|
|
@ -1549,4 +1544,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = tick;
|
|
|
|
module.exports = tick;
|
|
|
|
}, {}]
|
|
|
|
}, {}]
|
|
|
|
}, {}, [1]);
|
|
|
|
}, {}, [1]);
|
|
|
|