summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMaxime Quandalle <mquandalle@wekan.io>2016-07-21 11:19:52 +0200
committerMaxime Quandalle <mquandalle@wekan.io>2016-07-21 11:19:52 +0200
commit77069a36cd7f67de5b1368f1cd218a428dfaf729 (patch)
treebb01b65e0b251edcff845e7e464c59e083213d56 /client
parent3643bd49962da68476f2fe19bfda9273fa31dd44 (diff)
downloadwekan-77069a36cd7f67de5b1368f1cd218a428dfaf729.tar.gz
wekan-77069a36cd7f67de5b1368f1cd218a428dfaf729.tar.bz2
wekan-77069a36cd7f67de5b1368f1cd218a428dfaf729.zip
Fix undefined variables errors
Diffstat (limited to 'client')
-rw-r--r--client/components/boards/boardBody.js7
-rw-r--r--client/lib/inlinedform.js2
2 files changed, 6 insertions, 3 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js
index 15268a6b..4703bc91 100644
--- a/client/components/boards/boardBody.js
+++ b/client/components/boards/boardBody.js
@@ -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
diff --git a/client/lib/inlinedform.js b/client/lib/inlinedform.js
index bfca3983..56768a13 100644
--- a/client/lib/inlinedform.js
+++ b/client/lib/inlinedform.js
@@ -29,7 +29,7 @@ InlinedForm = BlazeComponent.extendComponent({
},
open(evt) {
- evt.preventDefault();
+ evt && evt.preventDefault();
// Close currently opened form, if any
EscapeActions.executeUpTo('inlinedForm');