summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-06-06 12:07:52 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-06-06 12:07:52 +0200
commit49167ccaa91376bf70c400013641f76d1164950e (patch)
treef289737b2097f5f68159faec584fa06e9c29a33a /client/components/lists
parent5cd0ec08aa69bf48a1306b84e0b0bc44ba17d6a4 (diff)
downloadwekan-49167ccaa91376bf70c400013641f76d1164950e.tar.gz
wekan-49167ccaa91376bf70c400013641f76d1164950e.tar.bz2
wekan-49167ccaa91376bf70c400013641f76d1164950e.zip
Improve the card details pane overlay interactions
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/body.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/lists/body.js b/client/components/lists/body.js
index 04f122cb..f2d780af 100644
--- a/client/components/lists/body.js
+++ b/client/components/lists/body.js
@@ -78,7 +78,7 @@ BlazeComponent.extendComponent({
// Pressing Enter should submit the card
if (evt.keyCode === 13) {
evt.preventDefault();
- var $form = $(evt.currentTarget).parents('form:first');
+ var $form = $(evt.currentTarget).closest('form');
// XXX For some reason $form.submit() does not work (it's probably a bug
// of blaze-component related to the fact that the submit event is non-
// bubbling). This is why we click on the submit button instead -- which
@@ -93,7 +93,7 @@ BlazeComponent.extendComponent({
var list = $('#js-list-' + this.data().listId);
var listSelector = '.js-list:not(.js-list-composer)';
var nextList = list[isReverse ? 'prev' : 'next'](listSelector).get(0);
- // If there isn't no next list, loop back to the beginning.
+ // If there is no next list, loop back to the beginning.
if (! nextList) {
nextList = $(listSelector + (isReverse ? ':last' : ':first')).get(0);
}