fix drag and drop

This commit is contained in:
j 2019-02-01 13:18:23 +05:30
parent ca32106e2b
commit 031db4c888

View file

@ -432,7 +432,6 @@ oml.enableDragAndDrop = function($list, canMove) {
) {
var targets = drag.action == 'copy' ? drag.target.id
: [oml.user.ui._list, drag.target.id];
cleanup(250);
oml.doHistory(drag.action, data.ids, targets, function() {
Ox.Request.clearCache('find');
oml.api.find({
@ -455,6 +454,7 @@ oml.enableDragAndDrop = function($list, canMove) {
if (drag.action == 'move') {
oml.$ui.list.updateElement();
}
cleanup(250);
});
} else {
cleanup()
@ -492,7 +492,6 @@ oml.enableDragAndDrop = function($list, canMove) {
text = Ox._('You cannot move books<br>out of a smart list.');
}
} else if (drag.target) {
console.log(drag.target)
targetText = drag.target.type == 'libraries' ? Ox._('a library')
: drag.target.type == 'library' ?
drag.target.user == ''