diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-11-27 15:42:15 -0800 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-11-27 15:42:15 -0800 |
commit | 875cf0ad563b935fd4d9bf18bebe8674e59df2e5 (patch) | |
tree | 5f3b5c65cc849d19d02b67655789c7bdbcb00f8d /client/components/boards | |
parent | 643eb8a7e17df4e0088a44c631cf295f6f08f1db (diff) | |
parent | 1a4ff826804665f27fc49c015c1a40ee49902f21 (diff) | |
download | wekan-875cf0ad563b935fd4d9bf18bebe8674e59df2e5.tar.gz wekan-875cf0ad563b935fd4d9bf18bebe8674e59df2e5.tar.bz2 wekan-875cf0ad563b935fd4d9bf18bebe8674e59df2e5.zip |
Merge pull request #410 from floatinghotpot/patch-3
bugfix: 'template.$()' does not accept dom element, but jQuery can
Diffstat (limited to 'client/components/boards')
-rw-r--r-- | client/components/boards/boardBody.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index 5a74e61b..a601bc2e 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -134,7 +134,7 @@ Template.boardBody.onRendered(function() { if (!Meteor.user() || !Meteor.user().isBoardMember()) return; - self.$(self.listsDom).sortable({ + $(self.listsDom).sortable({ tolerance: 'pointer', helper: 'clone', handle: '.js-list-header', @@ -146,7 +146,7 @@ Template.boardBody.onRendered(function() { Popup.close(); }, stop() { - self.$('.js-lists').find('.js-list:not(.js-list-composer)').each( + $(self.listsDom).find('.js-list:not(.js-list-composer)').each( (i, list) => { const data = Blaze.getData(list); Lists.update(data._id, { @@ -161,7 +161,7 @@ Template.boardBody.onRendered(function() { // Disable drag-dropping while in multi-selection mode self.autorun(() => { - self.$(self.listsDom).sortable('option', 'disabled', + $(self.listsDom).sortable('option', 'disabled', MultiSelection.isActive()); }); |