From 53672af0f79c64a88eb4280063e9df7e55f7144a Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Fri, 28 Sep 2012 11:43:22 -0700 Subject: [PATCH] Fix un-highlight when there is no query. --- web/viewer.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/viewer.js b/web/viewer.js index 759133127..4381e6c2f 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -343,10 +343,6 @@ var PDFFindController = { this.active = true; - if (!this.state.query) { - this.updateUIState(FindStates.FIND_FOUND); - return; - } this.updateUIState(FindStates.FIND_PENDING); if (this.dirtyMatch) { @@ -372,7 +368,7 @@ var PDFFindController = { } this.updatePage(i, true); } - if (!firstMatch) { + if (!firstMatch || !this.state.query) { this.updateUIState(FindStates.FIND_FOUND); } else { this.updateUIState(FindStates.FIND_NOTFOUND);