diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-10-29 23:08:27 +0100 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-10-29 23:17:21 +0100 |
commit | dd3cdf3945b26c70b00b5c9c1dd13c74eaed2f8b (patch) | |
tree | 3ba21510a19a09a5b50c0522caf74e0cd21c0e93 /client/components/boards | |
parent | e92f67f1910a0a3bc40b85436a89e7d55a04a615 (diff) | |
download | wekan-dd3cdf3945b26c70b00b5c9c1dd13c74eaed2f8b.tar.gz wekan-dd3cdf3945b26c70b00b5c9c1dd13c74eaed2f8b.tar.bz2 wekan-dd3cdf3945b26c70b00b5c9c1dd13c74eaed2f8b.zip |
Fix some bugs introduced in aa974aa
Yes Wekan need some tests. Yes I need to stop refactoring my code
when I’m halp-sleeping in my bed at 4am.
Diffstat (limited to 'client/components/boards')
-rw-r--r-- | client/components/boards/boardBody.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index 28257d00..5c1c974f 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -186,7 +186,8 @@ BlazeComponent.extendComponent({ return [{ submit(evt) { evt.preventDefault(); - const title = this.find('.list-name-input').value.trim(); + const titleInput = this.find('.list-name-input'); + const title = titleInput.value.trim(); if (title) { Lists.insert({ title, @@ -194,7 +195,8 @@ BlazeComponent.extendComponent({ sort: $('.list').length, }); - title.value = ''; + titleInput.value = ''; + titleInput.focus(); } }, }]; |