|
|
@ -147,9 +147,13 @@
|
|
|
|
self.drake = self.dragula(self.boardContainer, {
|
|
|
|
self.drake = self.dragula(self.boardContainer, {
|
|
|
|
moves: function (el, source, handle, sibling) {
|
|
|
|
moves: function (el, source, handle, sibling) {
|
|
|
|
if (self.options.readOnly) { return false; }
|
|
|
|
if (self.options.readOnly) { return false; }
|
|
|
|
|
|
|
|
if (el.classList.contains('new-item')) { return false; }
|
|
|
|
return handle.classList.contains('kanban-item');
|
|
|
|
return handle.classList.contains('kanban-item');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
accepts: function (el, target, source, sibling) {
|
|
|
|
accepts: function (el, target, source, sibling) {
|
|
|
|
|
|
|
|
if (sibling === null) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (self.options.readOnly) { return false; }
|
|
|
|
if (self.options.readOnly) { return false; }
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|