mirror of
https://github.com/wekan/wekan.git
synced 2026-01-18 07:25:28 +01:00
Hotfix more sortable elements
This commit is contained in:
parent
43d86d7d5d
commit
616dade81c
6 changed files with 21 additions and 22 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue