diff options
Diffstat (limited to 'client/components/lists/listBody.js')
-rw-r--r-- | client/components/lists/listBody.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 598f2130..7d767011 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -616,7 +616,11 @@ BlazeComponent.extendComponent({ }, 'click .js-minicard'(evt) { // 0. Common + const title = $('.js-element-title').val().trim(); + if (!title) + return; const element = Blaze.getData(evt.currentTarget); + element.title = title; let _id = ''; if (!this.isTemplateSearch || this.isCardTemplateSearch) { // Card insertion @@ -648,6 +652,7 @@ BlazeComponent.extendComponent({ board = Boards.findOne(element.linkedId); board.sort = Boards.find({archived: false}).count(); board.type = 'board'; + board.title = element.title; delete board.slug; _id = board.copy(); } |