diff options
author | amadilsons <joao.amado.95@gmail.com> | 2017-10-04 17:48:37 +0200 |
---|---|---|
committer | amadilsons <joao.amado.95@gmail.com> | 2017-10-04 17:48:37 +0200 |
commit | c865bfe49785181d97b25cb683c0ed37d82c1a69 (patch) | |
tree | 5d796c8602f9001c3e91f9edbc73a83315750ad1 /client/components/lists/list.js | |
parent | 089dbf0cf6a3e144d0271a8666d58e689f8c8dba (diff) | |
download | wekan-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.js | 4 |
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()); |