diff options
author | alayek <arijit.layek1991@gmail.com> | 2015-12-31 20:36:30 +0530 |
---|---|---|
committer | alayek <arijit.layek1991@gmail.com> | 2016-01-01 02:47:19 +0530 |
commit | 23ca733afd99d270b1d6645c43549eabd9475e7a (patch) | |
tree | 41523370b57afaf764ec4bf8fd63f2689fb5a532 /client/components/cards/cardDetails.js | |
parent | 9c013d3233056638de1e46e632ccffe82f3aca70 (diff) | |
download | wekan-23ca733afd99d270b1d6645c43549eabd9475e7a.tar.gz wekan-23ca733afd99d270b1d6645c43549eabd9475e7a.tar.bz2 wekan-23ca733afd99d270b1d6645c43549eabd9475e7a.zip |
change edit card title input to textarea for editing larger titles
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r-- | client/components/cards/cardDetails.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index ea1363b5..bfe9f755 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -141,6 +141,19 @@ Template.cardDetailsActionsPopup.events({ 'click .js-more': Popup.open('cardMore'), }); +Template.editCardTitleForm.onRendered(function() { + autosize(this.$('.js-edit-card-title')); +}); + +Template.editCardTitleForm.events({ + 'keydown .js-edit-card-title'(evt) { + // If enter key was pressed, submit the data + if (evt.keyCode === 13) { + $('.js-submit-edit-card-title-form').click(); + } + }, +}); + Template.moveCardPopup.events({ 'click .js-select-list'() { // XXX We should *not* get the currentCard from the global state, but |