diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-09-14 05:55:32 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-09-14 05:55:32 +0300 |
commit | 57119868bbb49f47c7d0b51b9952df9bd83d46f5 (patch) | |
tree | 6eb17b0f09edccecfc30f40834f840d3359439bc /client/components/lists/list.js | |
parent | 7b445dfc9321a5364c9530b1d7ab08cd4003aa3c (diff) | |
download | wekan-57119868bbb49f47c7d0b51b9952df9bd83d46f5.tar.gz wekan-57119868bbb49f47c7d0b51b9952df9bd83d46f5.tar.bz2 wekan-57119868bbb49f47c7d0b51b9952df9bd83d46f5.zip |
Revert drag handle changes.
Thanks to Keelan !
Related #2704
Diffstat (limited to 'client/components/lists/list.js')
-rw-r--r-- | client/components/lists/list.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/client/components/lists/list.js b/client/components/lists/list.js index 650d1295..c2b39be9 100644 --- a/client/components/lists/list.js +++ b/client/components/lists/list.js @@ -31,9 +31,11 @@ BlazeComponent.extendComponent({ const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)'; const $cards = this.$('.js-minicards'); - $('.js-minicards').sortable({ - handle: '.handle', - }); + if (window.matchMedia('(max-width: 1199px)').matches) { + $('.js-minicards').sortable({ + handle: '.handle', + }); + } $cards.sortable({ connectWith: '.js-minicards:not(.js-list-full)', |