diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2015-09-20 15:55:23 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2015-09-20 16:49:11 +0200 |
commit | f4a68a0f7d5d7f4d2ca84dfa2d4ecf85a2f838a6 (patch) | |
tree | 6848b6cfebbe928f1bdc1e04128680124f8bbd88 /client/components/lists | |
parent | ec92f84f41dddf8826b5cf68e123a402599185e5 (diff) | |
download | wekan-f4a68a0f7d5d7f4d2ca84dfa2d4ecf85a2f838a6.tar.gz wekan-f4a68a0f7d5d7f4d2ca84dfa2d4ecf85a2f838a6.tar.bz2 wekan-f4a68a0f7d5d7f4d2ca84dfa2d4ecf85a2f838a6.zip |
Fix Popup.afterCommit
We need to use "function() {}" instead of the ES6 style "() {}" with
popup.afterCommit because we need the original value of "this" inside
the callback.
Diffstat (limited to 'client/components/lists')
-rw-r--r-- | client/components/lists/listHeader.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js index d4891fec..a893e873 100644 --- a/client/components/lists/listHeader.js +++ b/client/components/lists/listHeader.js @@ -34,7 +34,7 @@ Template.listActionPopup.events({ Popup.close(); }, 'click .js-move-cards': Popup.open('listMoveCards'), - 'click .js-archive-cards': Popup.afterConfirm('listArchiveCards', () => { + 'click .js-archive-cards': Popup.afterConfirm('listArchiveCards', function() { this.allCards().forEach((card) => { card.archive(); }); |