Browse Source

Fix un-highlight when there is no query.

Brendan Dahl 13 years ago
parent
commit
53672af0f7
  1. 6
      web/viewer.js

6
web/viewer.js

@ -343,10 +343,6 @@ var PDFFindController = {
this.active = true; this.active = true;
if (!this.state.query) {
this.updateUIState(FindStates.FIND_FOUND);
return;
}
this.updateUIState(FindStates.FIND_PENDING); this.updateUIState(FindStates.FIND_PENDING);
if (this.dirtyMatch) { if (this.dirtyMatch) {
@ -372,7 +368,7 @@ var PDFFindController = {
} }
this.updatePage(i, true); this.updatePage(i, true);
} }
if (!firstMatch) { if (!firstMatch || !this.state.query) {
this.updateUIState(FindStates.FIND_FOUND); this.updateUIState(FindStates.FIND_FOUND);
} else { } else {
this.updateUIState(FindStates.FIND_NOTFOUND); this.updateUIState(FindStates.FIND_NOTFOUND);

Loading…
Cancel
Save