diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-09-25 20:49:19 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-09-25 20:49:19 +0300 |
commit | 872ed4b2f934e9df7a3f4acd63bade013af2d1e9 (patch) | |
tree | c5dcbb4ca8367de789a026b117ab0c42fe3df638 /client | |
parent | 03d7fc02ecc90690e1282d417f35b7e4561af066 (diff) | |
download | wekan-872ed4b2f934e9df7a3f4acd63bade013af2d1e9.tar.gz wekan-872ed4b2f934e9df7a3f4acd63bade013af2d1e9.tar.bz2 wekan-872ed4b2f934e9df7a3f4acd63bade013af2d1e9.zip |
Drag handles continue. In progress.
Diffstat (limited to 'client')
-rw-r--r-- | client/components/lists/list.js | 6 | ||||
-rw-r--r-- | client/components/swimlanes/swimlanes.js | 1 |
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, |