mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Revert drag handle changes.
This commit is contained in:
parent
5bc355f9a5
commit
f3b858ca21
17 changed files with 17 additions and 265 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue