summaryrefslogtreecommitdiffstats
path: root/client/components/lists/list.js
diff options
context:
space:
mode:
authoramadilsons <joao.amado.95@gmail.com>2017-10-04 17:48:37 +0200
committeramadilsons <joao.amado.95@gmail.com>2017-10-04 17:48:37 +0200
commitc865bfe49785181d97b25cb683c0ed37d82c1a69 (patch)
tree5d796c8602f9001c3e91f9edbc73a83315750ad1 /client/components/lists/list.js
parent089dbf0cf6a3e144d0271a8666d58e689f8c8dba (diff)
downloadwekan-c865bfe49785181d97b25cb683c0ed37d82c1a69.tar.gz
wekan-c865bfe49785181d97b25cb683c0ed37d82c1a69.tar.bz2
wekan-c865bfe49785181d97b25cb683c0ed37d82c1a69.zip
most work concluded, code needs clean up, further testing required
Diffstat (limited to 'client/components/lists/list.js')
-rw-r--r--client/components/lists/list.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/lists/list.js b/client/components/lists/list.js
index 9c191348..d99fc963 100644
--- a/client/components/lists/list.js
+++ b/client/components/lists/list.js
@@ -22,7 +22,7 @@ BlazeComponent.extendComponent({
const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)';
const $cards = this.$('.js-minicards');
$cards.sortable({
- connectWith: '.js-minicards',
+ connectWith: '.js-minicards:not(.js-list-full)',
tolerance: 'pointer',
appendTo: 'body',
helper(evt, item) {
@@ -81,7 +81,7 @@ BlazeComponent.extendComponent({
function userIsMember() {
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
}
-
+
// Disable drag-dropping if the current user is not a board member or is comment only
this.autorun(() => {
$cards.sortable('option', 'disabled', !userIsMember());