summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-09-28 14:55:09 +0300
committerLauri Ojansivu <x@xet7.org>2019-09-28 14:55:09 +0300
commit75dc5f226cb3261337c9be9614856efc0b40e377 (patch)
tree979c89ad7befbf9409a49cbf7365317c6b1cc7ed /client
parent5696e4a4c67510d8e430eaf4ecb99896f857962e (diff)
parent872ed4b2f934e9df7a3f4acd63bade013af2d1e9 (diff)
downloadwekan-75dc5f226cb3261337c9be9614856efc0b40e377.tar.gz
wekan-75dc5f226cb3261337c9be9614856efc0b40e377.tar.bz2
wekan-75dc5f226cb3261337c9be9614856efc0b40e377.zip
Merge branch 'feature-drag-handle'
Diffstat (limited to 'client')
-rw-r--r--client/components/lists/list.js6
-rw-r--r--client/components/swimlanes/swimlanes.js1
2 files changed, 7 insertions, 0 deletions
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,