summaryrefslogtreecommitdiffstats
path: root/client/components/swimlanes/swimlanes.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-10-03 06:03:11 +0300
committerLauri Ojansivu <x@xet7.org>2019-10-03 06:03:11 +0300
commitf3b858ca212bdce571b56325eaa205feda60dca2 (patch)
tree9bf0f7057dbc7af33d16ca2aec6e3383917f6dda /client/components/swimlanes/swimlanes.js
parent5bc355f9a5e78df4c19764fdc4a343a46af4fdf8 (diff)
downloadwekan-f3b858ca212bdce571b56325eaa205feda60dca2.tar.gz
wekan-f3b858ca212bdce571b56325eaa205feda60dca2.tar.bz2
wekan-f3b858ca212bdce571b56325eaa205feda60dca2.zip
Revert drag handle changes.
Diffstat (limited to 'client/components/swimlanes/swimlanes.js')
-rw-r--r--client/components/swimlanes/swimlanes.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js
index ed53b9e9..e0857003 100644
--- a/client/components/swimlanes/swimlanes.js
+++ b/client/components/swimlanes/swimlanes.js
@@ -101,8 +101,6 @@ function initSortable(boardComponent, $listsDom) {
// is not a board member
boardComponent.autorun(() => {
const $listDom = $listsDom;
-
-
if ($listDom.data('sortable')) {
$listsDom.sortable(
'option',
@@ -110,33 +108,6 @@ function initSortable(boardComponent, $listsDom) {
MultiSelection.isActive() || !userIsMember(),
);
}
-
-
- if (Utils.isMiniScreen()) {
- this.$('.js-lists').sortable({
- handle: '.list-header-menu-handle',
- });
- this.$('.js-swimlanes').sortable({
- handle: '.swimlane-header-menu-miniscreen-handle',
- });
- } else {
- if (Meteor.user().hasShowDesktopDragHandles()) {
- this.$('.js-lists').sortable({
- handle: '.list-header-menu-handle',
- });
- this.$('.js-swimlanes').sortable({
- handle: '.swimlane-header-menu-handle',
- });
- } else {
- this.$('.js-lists').sortable({
- handle: '.list-header',
- });
- this.$('.js-swimlanes').sortable({
- handle: '.swimlane-header',
- });
- }
- }
-
});
}
@@ -187,7 +158,6 @@ BlazeComponent.extendComponent({
'p',
'.js-list-header',
];
-
if (
$(evt.target).closest(noDragInside.join(',')).length === 0 &&
this.$('.swimlane').prop('clientHeight') > evt.offsetY
@@ -263,9 +233,6 @@ BlazeComponent.extendComponent({
}).register('addListForm');
Template.swimlane.helpers({
- showDesktopDragHandles() {
- return Meteor.user().hasShowDesktopDragHandles();
- },
canSeeAddList() {
return (
Meteor.user() &&
@@ -308,9 +275,3 @@ BlazeComponent.extendComponent({
initSortable(boardComponent, $listsDom);
},
}).register('listsGroup');
-
-Template.listsGroup.helpers({
- showDesktopDragHandles() {
- return Meteor.user().hasShowDesktopDragHandles();
- },
-});