diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-08-28 02:21:42 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-08-28 02:25:26 +0200 |
commit | b5dabfe88695a8f8211b29fea0dc16131c9a1829 (patch) | |
tree | b257eddd507f0980a32e7c2c5932b866401a9b15 /client/config/blazeHelpers.js | |
parent | 29e93162c2eb5b86b1afb3328748eb3b32b47b94 (diff) | |
download | wekan-b5dabfe88695a8f8211b29fea0dc16131c9a1829.tar.gz wekan-b5dabfe88695a8f8211b29fea0dc16131c9a1829.tar.bz2 wekan-b5dabfe88695a8f8211b29fea0dc16131c9a1829.zip |
More explicit file names
Diffstat (limited to 'client/config/blazeHelpers.js')
-rw-r--r-- | client/config/blazeHelpers.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/client/config/blazeHelpers.js b/client/config/blazeHelpers.js new file mode 100644 index 00000000..1be44728 --- /dev/null +++ b/client/config/blazeHelpers.js @@ -0,0 +1,13 @@ +Blaze.registerHelper('currentBoard', function() { + var boardId = Session.get('currentBoard'); + if (boardId) { + return Boards.findOne(boardId); + } +}); + +Blaze.registerHelper('currentCard', function() { + var cardId = Session.get('currentCard'); + if (cardId) { + return Cards.findOne(cardId); + } +}); |