diff options
Diffstat (limited to 'client/components/swimlanes/swimlanes.js')
-rw-r--r-- | client/components/swimlanes/swimlanes.js | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js index 2c916e4d..8953eb05 100644 --- a/client/components/swimlanes/swimlanes.js +++ b/client/components/swimlanes/swimlanes.js @@ -53,22 +53,9 @@ function initSortable(boardComponent, $listsDom) { }, }; - if (Utils.isMiniScreen) { - $listsDom.sortable({ - handle: '.js-list-handle', - }); - } - - if (!Utils.isMiniScreen && showDesktopDragHandles) { - $listsDom.sortable({ - handle: '.js-list-header', - }); - } - $listsDom.sortable({ tolerance: 'pointer', helper: 'clone', - handle: '.js-list-header', items: '.js-list:not(.js-list-composer)', placeholder: 'list placeholder', distance: 7, @@ -113,6 +100,22 @@ function initSortable(boardComponent, $listsDom) { // is not a board member boardComponent.autorun(() => { const $listDom = $listsDom; + + if (Utils.isMiniScreen) { + $listsDom.sortable({ + handle: '.js-list-handle', + }); + } + + if (!Utils.isMiniScreen && showDesktopDragHandles) { + $listsDom.sortable({ + handle: '.js-list-header', + }); + } + + + + if ($listDom.data('sortable')) { $listsDom.sortable( 'option', @@ -165,7 +168,7 @@ BlazeComponent.extendComponent({ // his mouse. if (Utils.isMiniScreen) { - const noDragInside = [ + noDragInside = [ 'a', 'input', 'textarea', @@ -176,7 +179,7 @@ BlazeComponent.extendComponent({ } if (!Utils.isMiniScreen && !showDesktopDragHandles) { - const noDragInside = [ + noDragInside = [ 'a', 'input', 'textarea', @@ -186,7 +189,7 @@ BlazeComponent.extendComponent({ } if (!Utils.isMiniScreen && showDesktopDragHandles) { - const noDragInside = [ + noDragInside = [ 'a', 'input', 'textarea', |