mirror of
https://github.com/wekan/wekan.git
synced 2025-04-24 14:08:31 -04:00
bugfix: template. does not accept dom elements, but jquery can
This commit is contained in:
parent
643eb8a7e1
commit
1a4ff82680
1 changed files with 3 additions and 3 deletions
|
@ -134,7 +134,7 @@ Template.boardBody.onRendered(function() {
|
||||||
if (!Meteor.user() || !Meteor.user().isBoardMember())
|
if (!Meteor.user() || !Meteor.user().isBoardMember())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
self.$(self.listsDom).sortable({
|
$(self.listsDom).sortable({
|
||||||
tolerance: 'pointer',
|
tolerance: 'pointer',
|
||||||
helper: 'clone',
|
helper: 'clone',
|
||||||
handle: '.js-list-header',
|
handle: '.js-list-header',
|
||||||
|
@ -146,7 +146,7 @@ Template.boardBody.onRendered(function() {
|
||||||
Popup.close();
|
Popup.close();
|
||||||
},
|
},
|
||||||
stop() {
|
stop() {
|
||||||
self.$('.js-lists').find('.js-list:not(.js-list-composer)').each(
|
$(self.listsDom).find('.js-list:not(.js-list-composer)').each(
|
||||||
(i, list) => {
|
(i, list) => {
|
||||||
const data = Blaze.getData(list);
|
const data = Blaze.getData(list);
|
||||||
Lists.update(data._id, {
|
Lists.update(data._id, {
|
||||||
|
@ -161,7 +161,7 @@ Template.boardBody.onRendered(function() {
|
||||||
|
|
||||||
// Disable drag-dropping while in multi-selection mode
|
// Disable drag-dropping while in multi-selection mode
|
||||||
self.autorun(() => {
|
self.autorun(() => {
|
||||||
self.$(self.listsDom).sortable('option', 'disabled',
|
$(self.listsDom).sortable('option', 'disabled',
|
||||||
MultiSelection.isActive());
|
MultiSelection.isActive());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue