summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDetails.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-02-07 03:16:16 +0200
committerLauri Ojansivu <x@xet7.org>2020-02-07 03:16:16 +0200
commitbf78b093bad7d463ee325ad96e8b485264d4a3be (patch)
tree3e427789351bd5b45117c30b3a494b8db568613a /client/components/cards/cardDetails.js
parent8384d68a060ef8f2c202ce2fa6064c5c823d28dc (diff)
downloadwekan-bf78b093bad7d463ee325ad96e8b485264d4a3be.tar.gz
wekan-bf78b093bad7d463ee325ad96e8b485264d4a3be.tar.bz2
wekan-bf78b093bad7d463ee325ad96e8b485264d4a3be.zip
Try to disable dragging Swimlanes/Lists/Cards/Checklists/Subtasks on small mobile smartphones webbrowsers, and hide drag handles on mobile web.
Thanks to xet7 !
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r--client/components/cards/cardDetails.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index 92edec38..5fdc5579 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -253,6 +253,12 @@ BlazeComponent.extendComponent({
if ($subtasksDom.data('sortable')) {
$subtasksDom.sortable('option', 'disabled', !userIsMember());
}
+ if ($checklistsDom.data('sortable')) {
+ $checklistsDom.sortable('option', 'disabled', Utils.isMiniScreen());
+ }
+ if ($subtasksDom.data('sortable')) {
+ $subtasksDom.sortable('option', 'disabled', Utils.isMiniScreen());
+ }
});
},