diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-10-03 06:03:11 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-10-03 06:03:11 +0300 |
commit | f3b858ca212bdce571b56325eaa205feda60dca2 (patch) | |
tree | 9bf0f7057dbc7af33d16ca2aec6e3383917f6dda /client/components/cards/checklists.js | |
parent | 5bc355f9a5e78df4c19764fdc4a343a46af4fdf8 (diff) | |
download | wekan-f3b858ca212bdce571b56325eaa205feda60dca2.tar.gz wekan-f3b858ca212bdce571b56325eaa205feda60dca2.tar.bz2 wekan-f3b858ca212bdce571b56325eaa205feda60dca2.zip |
Revert drag handle changes.
Diffstat (limited to 'client/components/cards/checklists.js')
-rw-r--r-- | client/components/cards/checklists.js | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/client/components/cards/checklists.js b/client/components/cards/checklists.js index 2128b67d..57939eb8 100644 --- a/client/components/cards/checklists.js +++ b/client/components/cards/checklists.js @@ -39,7 +39,6 @@ function initSorting(items) { // ugly touch event hotfix enableClickOnTouch('.js-checklist-item:not(.placeholder)'); - } BlazeComponent.extendComponent({ @@ -61,30 +60,6 @@ BlazeComponent.extendComponent({ if ($itemsDom.data('sortable')) { $(self.itemsDom).sortable('option', 'disabled', !userIsMember()); } - if(Utils.isMiniScreen()) { - this.$('.js-checklists').sortable({ - handle: '.checklist-handle', - }); - this.$('.js-checklist-item').sortable({ - handle: '.checklist-item-handle', - }); - } else { - if (Meteor.user().hasShowDesktopDragHandles()) { - this.$('.js-checklists').sortable({ - handle: '.checklist-handle', - }); - this.$('.js-checklist-item').sortable({ - handle: '.checklist-item-handle', - }); - } else { - this.$('.js-checklists').sortable({ - handle: '.checklist-title', - }); - this.$('.js-checklist-item').sortable({ - handle: '.checklist-item', - }); - } - } }); }, @@ -97,12 +72,6 @@ BlazeComponent.extendComponent({ }, }).register('checklistDetail'); -Template.checklistDetail.helpers({ - showDesktopDragHandles() { - return Meteor.user().hasShowDesktopDragHandles(); - }, -}); - BlazeComponent.extendComponent({ addChecklist(event) { event.preventDefault(); @@ -228,12 +197,6 @@ BlazeComponent.extendComponent({ }, }).register('checklists'); -Template.checklists.helpers({ - showDesktopDragHandles() { - return Meteor.user().hasShowDesktopDragHandles(); - }, -}); - Template.checklistDeleteDialog.onCreated(() => { const $cardDetails = this.$('.card-details'); this.scrollState = { @@ -268,9 +231,6 @@ Template.checklistItemDetail.helpers({ !Meteor.user().isCommentOnly() ); }, - showDesktopDragHandles() { - return Meteor.user().hasShowDesktopDragHandles(); - }, }); BlazeComponent.extendComponent({ |