Fix undefined variables errors

This commit is contained in:
Maxime Quandalle 2016-07-21 11:19:52 +02:00
parent 3643bd4996
commit 77069a36cd
No known key found for this signature in database
GPG key ID: 428641C03D29CA10
2 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -29,7 +29,7 @@ InlinedForm = BlazeComponent.extendComponent({
},
open(evt) {
evt.preventDefault();
evt && evt.preventDefault();
// Close currently opened form, if any
EscapeActions.executeUpTo('inlinedForm');