소스 검색

More robust logic if isMiniScreen or isShowDesktopDragHandles

Martin Filser 3 년 전
부모
커밋
7ced602be4
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      client/components/boards/boardBody.js
  2. 1 1
      client/components/lists/list.js
  3. 1 1
      client/components/swimlanes/swimlanes.js

+ 1 - 1
client/components/boards/boardBody.js

@@ -195,7 +195,7 @@ BlazeComponent.extendComponent({
         $swimlanesDom.sortable({
           handle: '.js-swimlane-header-handle',
         });
-      } else if (!Utils.isMiniScreen() && !Utils.isShowDesktopDragHandles()) {
+      } else {
         $swimlanesDom.sortable({
           handle: '.swimlane-header',
         });

+ 1 - 1
client/components/lists/list.js

@@ -121,7 +121,7 @@ BlazeComponent.extendComponent({
         $cards.sortable({
           handle: '.handle',
         });
-      } else if (!Utils.isMiniScreen() && !Utils.isShowDesktopDragHandles()) {
+      } else {
         $cards.sortable({
           handle: '.minicard',
         });

+ 1 - 1
client/components/swimlanes/swimlanes.js

@@ -99,7 +99,7 @@ function initSortable(boardComponent, $listsDom) {
       $listsDom.sortable({
         handle: '.js-list-handle',
       });
-    } else if (!Utils.isMiniScreen() && !Utils.isShowDesktopDragHandles()) {
+    } else {
       $listsDom.sortable({
         handle: '.js-list-header',
       });