diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-08-25 22:18:43 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-08-25 23:40:57 +0200 |
commit | 60712e1ac4c431f6c7d8c992a6c7e75ac82a3ab7 (patch) | |
tree | 7ad87ed4689280c524487736ee3dd34059b6de6d /client/config | |
parent | 22e854cc30474b13f2981de9a44661b8a7baa5ba (diff) | |
download | wekan-60712e1ac4c431f6c7d8c992a6c7e75ac82a3ab7.tar.gz wekan-60712e1ac4c431f6c7d8c992a6c7e75ac82a3ab7.tar.bz2 wekan-60712e1ac4c431f6c7d8c992a6c7e75ac82a3ab7.zip |
Fix EscapeActions click in handling
Fixes a bug introduced in 07cc454 and one introduced in 22e854c.
Diffstat (limited to 'client/config')
-rw-r--r-- | client/config/router.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/client/config/router.js b/client/config/router.js index 4545f220..ef874c5b 100644 --- a/client/config/router.js +++ b/client/config/router.js @@ -14,9 +14,14 @@ FlowRouter.route('/', { FlowRouter.route('/b/:id/:slug', { name: 'board', action: function(params) { - EscapeActions.executeAll(); - - Session.set('currentBoard', params.id); + let currentBoard = params.id; + // If we close a card, we'll execute again this route action but we don't + // want to excape every current actions (filters, etc.) + if (Session.get('currentBoard') !== currentBoard) { + EscapeActions.executeAll(); + } + + Session.set('currentBoard', currentBoard); Session.set('currentCard', null); BlazeLayout.render('defaultLayout', { content: 'board' }); |