summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-06-13 15:22:42 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-06-13 15:22:42 +0200
commita16b7cd69c07a59b16deb8aa6f579b0e1d3027f8 (patch)
treec7bdf78f530e98079994a73d5d7593250ff4f3d8 /client
parente001c3409a3911089adddad7bbd0e350aa152cb8 (diff)
downloadwekan-a16b7cd69c07a59b16deb8aa6f579b0e1d3027f8.tar.gz
wekan-a16b7cd69c07a59b16deb8aa6f579b0e1d3027f8.tar.bz2
wekan-a16b7cd69c07a59b16deb8aa6f579b0e1d3027f8.zip
Close "over elements" when opening the filter view
Diffstat (limited to 'client')
-rw-r--r--client/components/sidebar/sidebar.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js
index 7da67476..01612835 100644
--- a/client/components/sidebar/sidebar.js
+++ b/client/components/sidebar/sidebar.js
@@ -34,6 +34,7 @@ BlazeComponent.extendComponent({
open: function() {
if (! this._isOpen.get()) {
this._isOpen.set(true);
+ EscapeActions.executeUpTo('detailsPane');
}
},
@@ -67,7 +68,10 @@ BlazeComponent.extendComponent({
setView: function(view) {
view = _.isString(view) ? view : defaultView;
- this._view.set(view);
+ if (this._view.get() !== view) {
+ this._view.set(view);
+ EscapeActions.executeUpTo('detailsPane');
+ }
this.open();
},