mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
Fix undefined variables errors
This commit is contained in:
parent
3643bd4996
commit
77069a36cd
2 changed files with 6 additions and 3 deletions
|
@ -163,8 +163,11 @@ Template.boardBody.onRendered(function() {
|
|||
// Disable drag-dropping while in multi-selection mode, or if the current user
|
||||
// is not a board member
|
||||
self.autorun(() => {
|
||||
$(self.listsDom).sortable('option', 'disabled',
|
||||
MultiSelection.isActive() || !userIsMember());
|
||||
const $listDom = $(self.listsDom);
|
||||
if ($listDom.data('sortable')) {
|
||||
$(self.listsDom).sortable('option', 'disabled',
|
||||
MultiSelection.isActive() || !userIsMember());
|
||||
}
|
||||
});
|
||||
|
||||
// If there is no data in the board (ie, no lists) we autofocus the list
|
||||
|
|
|
@ -29,7 +29,7 @@ InlinedForm = BlazeComponent.extendComponent({
|
|||
},
|
||||
|
||||
open(evt) {
|
||||
evt.preventDefault();
|
||||
evt && evt.preventDefault();
|
||||
|
||||
// Close currently opened form, if any
|
||||
EscapeActions.executeUpTo('inlinedForm');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue