diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-04-16 21:27:24 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-04-16 21:27:24 +0300 |
commit | e402200b872026d0a01b89cf50578ab6b49bf103 (patch) | |
tree | 614bf240fd85826ab990ace8ba8ec2c5a9dc64d4 /client/components/lists | |
parent | aede4dd9c5c5a1f1654c4251dbf949761ff9b811 (diff) | |
parent | ea289c781075c893a0e3a6f05e96f3b3263f0466 (diff) | |
download | wekan-e402200b872026d0a01b89cf50578ab6b49bf103.tar.gz wekan-e402200b872026d0a01b89cf50578ab6b49bf103.tar.bz2 wekan-e402200b872026d0a01b89cf50578ab6b49bf103.zip |
Merge branch 'devel'
Diffstat (limited to 'client/components/lists')
-rw-r--r-- | client/components/lists/listHeader.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js index 60dd6a34..4b6bf196 100644 --- a/client/components/lists/listHeader.js +++ b/client/components/lists/listHeader.js @@ -28,14 +28,15 @@ BlazeComponent.extendComponent({ }, showCardsCountForList(count) { - return count > this.limitToShowCardsCount(); + const limit = this.limitToShowCardsCount(); + return limit > 0 && count > limit; }, events() { return [{ 'click .js-open-list-menu': Popup.open('listAction'), - 'click .js-add-card' () { - const listDom = document.getElementById(`js-list-${this.currentData()._id}`); + 'click .js-add-card' (evt) { + const listDom = $(evt.target).parents(`#js-list-${this.currentData()._id}`)[0]; const listComponent = BlazeComponent.getComponentForElement(listDom); listComponent.openForm({ position: 'top', |