mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Merge branch 'feature-drag-handle'
This commit is contained in:
commit
75dc5f226c
2 changed files with 7 additions and 0 deletions
|
|
@ -43,6 +43,12 @@ BlazeComponent.extendComponent({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Utils.isMiniScreen && !showDesktopDragHandles) {
|
||||||
|
$('.js-minicards').sortable({
|
||||||
|
handle: 'list-header',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$cards.sortable({
|
$cards.sortable({
|
||||||
connectWith: '.js-minicards:not(.js-list-full)',
|
connectWith: '.js-minicards:not(.js-list-full)',
|
||||||
tolerance: 'pointer',
|
tolerance: 'pointer',
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ function initSortable(boardComponent, $listsDom) {
|
||||||
$listsDom.sortable({
|
$listsDom.sortable({
|
||||||
tolerance: 'pointer',
|
tolerance: 'pointer',
|
||||||
helper: 'clone',
|
helper: 'clone',
|
||||||
|
handle: '.js-list-header',
|
||||||
items: '.js-list:not(.js-list-composer)',
|
items: '.js-list:not(.js-list-composer)',
|
||||||
placeholder: 'list placeholder',
|
placeholder: 'list placeholder',
|
||||||
distance: 7,
|
distance: 7,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue