From 29b94b5ad3fff64961d3cf135f98b6edea34b5c1 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 9 May 2016 12:05:33 -0400 Subject: [PATCH] FIX: If you ctrl+f twice, it should show the browser version --- app/assets/javascripts/discourse/widgets/header.js.es6 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/header.js.es6 b/app/assets/javascripts/discourse/widgets/header.js.es6 index 711aef6dcfc..b4974104bb9 100644 --- a/app/assets/javascripts/discourse/widgets/header.js.es6 +++ b/app/assets/javascripts/discourse/widgets/header.js.es6 @@ -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();