Drag handles at checklist items on mobile view #3240

This commit is contained in:
Martin Filser 2020-11-11 00:28:56 +01:00
parent bc929fb7e0
commit 8005640b77
3 changed files with 12 additions and 1 deletions

View file

@ -58,8 +58,14 @@ BlazeComponent.extendComponent({
$(self.itemsDom).sortable(
'option',
'disabled',
!userIsMember() || Utils.isMiniScreen(),
!userIsMember(),
);
if (Utils.isMiniScreenOrShowDesktopDragHandles()) {
$(self.itemsDom).sortable({
handle: 'span.fa.checklistitem-handle',
appendTo: 'parent',
});
}
}
});
},