diff options
author | Haocen Xu <haocen.xu@gmail.com> | 2018-07-06 14:42:36 -0400 |
---|---|---|
committer | Haocen Xu <haocen.xu@gmail.com> | 2018-07-06 14:42:36 -0400 |
commit | 616dade81c25b10fc409aee1bcc9a93ddbfee81b (patch) | |
tree | 16188860b3eb7db871ab75c2094db91407e21926 /client/components | |
parent | 43d86d7d5d3f3b34b0500f6d5d3afe7bd86b0060 (diff) | |
download | wekan-616dade81c25b10fc409aee1bcc9a93ddbfee81b.tar.gz wekan-616dade81c25b10fc409aee1bcc9a93ddbfee81b.tar.bz2 wekan-616dade81c25b10fc409aee1bcc9a93ddbfee81b.zip |
Hotfix more sortable elements
Diffstat (limited to 'client/components')
-rw-r--r-- | client/components/boards/boardBody.js | 4 | ||||
-rw-r--r-- | client/components/cards/cardDetails.js | 6 | ||||
-rw-r--r-- | client/components/cards/checklists.js | 4 | ||||
-rw-r--r-- | client/components/lists/list.js | 4 | ||||
-rw-r--r-- | client/components/swimlanes/swimlanes.js | 4 |
5 files changed, 10 insertions, 12 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index 6ff40ca4..b68c9b12 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -75,9 +75,7 @@ BlazeComponent.extendComponent({ }); // ugly touch event hotfix - $('.js-swimlane:not(.placeholder)').each(function() { - enableClickOnTouch(this); - }); + enableClickOnTouch('.js-swimlane:not(.placeholder)'); function userIsMember() { return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly(); diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 5fee1680..1583a51f 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -132,6 +132,9 @@ BlazeComponent.extendComponent({ }, }); + // ugly touch event hotfix + enableClickOnTouch('.card-checklist-items .js-checklist'); + const $subtasksDom = this.$('.card-subtasks-items'); $subtasksDom.sortable({ @@ -167,6 +170,9 @@ BlazeComponent.extendComponent({ }, }); + // ugly touch event hotfix + enableClickOnTouch('.card-subtasks-items .js-subtasks'); + function userIsMember() { return Meteor.user() && Meteor.user().isBoardMember(); } diff --git a/client/components/cards/checklists.js b/client/components/cards/checklists.js index 7fc54f9e..e014abba 100644 --- a/client/components/cards/checklists.js +++ b/client/components/cards/checklists.js @@ -38,9 +38,7 @@ function initSorting(items) { }); // ugly touch event hotfix - $('.js-checklist-item:not(.placeholder)').each(function() { - enableClickOnTouch(this); - }); + enableClickOnTouch('.js-checklist-item:not(.placeholder)'); } BlazeComponent.extendComponent({ diff --git a/client/components/lists/list.js b/client/components/lists/list.js index 3f7c6dea..267af31c 100644 --- a/client/components/lists/list.js +++ b/client/components/lists/list.js @@ -84,9 +84,7 @@ BlazeComponent.extendComponent({ }); // ugly touch event hotfix - $(itemsSelector).each(function() { - enableClickOnTouch(this); - }); + enableClickOnTouch(itemsSelector); // Disable drag-dropping if the current user is not a board member or is comment only this.autorun(() => { diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js index 2acf4a82..865895a9 100644 --- a/client/components/swimlanes/swimlanes.js +++ b/client/components/swimlanes/swimlanes.js @@ -67,9 +67,7 @@ function initSortable(boardComponent, $listsDom) { }); // ugly touch event hotfix - $('.js-list:not(.js-list-composer)').each(function() { - enableClickOnTouch(this); - }); + enableClickOnTouch('.js-list:not(.js-list-composer)'); function userIsMember() { return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly(); |