From 872ed4b2f934e9df7a3f4acd63bade013af2d1e9 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Wed, 25 Sep 2019 20:49:19 +0300 Subject: Drag handles continue. In progress. --- client/components/lists/list.js | 6 ++++++ client/components/swimlanes/swimlanes.js | 1 + 2 files changed, 7 insertions(+) diff --git a/client/components/lists/list.js b/client/components/lists/list.js index b7b8b2e0..023ba358 100644 --- a/client/components/lists/list.js +++ b/client/components/lists/list.js @@ -43,6 +43,12 @@ BlazeComponent.extendComponent({ }); } + if (!Utils.isMiniScreen && !showDesktopDragHandles) { + $('.js-minicards').sortable({ + handle: 'list-header', + }); + } + $cards.sortable({ connectWith: '.js-minicards:not(.js-list-full)', tolerance: 'pointer', diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js index 33a7991e..2c916e4d 100644 --- a/client/components/swimlanes/swimlanes.js +++ b/client/components/swimlanes/swimlanes.js @@ -68,6 +68,7 @@ function initSortable(boardComponent, $listsDom) { $listsDom.sortable({ tolerance: 'pointer', helper: 'clone', + handle: '.js-list-header', items: '.js-list:not(.js-list-composer)', placeholder: 'list placeholder', distance: 7, -- cgit v1.2.3-1-g7c22