Close "over elements" when opening the filter view

This commit is contained in:
Maxime Quandalle 2015-06-13 15:22:42 +02:00
parent e001c3409a
commit a16b7cd69c

View file

@ -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();
},