FIX: If you ctrl+f twice, it should show the browser version

This commit is contained in:
Robin Ward 2016-05-09 12:05:33 -04:00
parent bc0b487cd7
commit 29b94b5ad3
No known key found for this signature in database
GPG key ID: 0E091E2B4ED1B83D

View file

@ -229,11 +229,6 @@ export default createWidget('header', {
togglePageSearch() {
const { state } = this;
if (state.searchVisible) {
this.toggleSearchMenu();
return false;
}
state.contextEnabled = false;
const currentPath = this.container.lookup('controller:application').get('currentPath');
@ -248,6 +243,11 @@ export default createWidget('header', {
this.container.lookup('controller:topic').get('model.postStream.stream.length'));
}
if (state.searchVisible) {
this.toggleSearchMenu();
return showSearch;
}
if (showSearch) {
state.contextEnabled = true;
this.toggleSearchMenu();