mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 18:22:51 +08:00
Fix highlighting search results when search bar is visible
This commit is contained in:
@ -463,7 +463,7 @@ define([
|
||||
},
|
||||
|
||||
onSelectSearchingResults: function (val) {
|
||||
if (!val && this.getApplication().getController('LeftMenu').isSearchPanelVisible()) return;
|
||||
if (!val && (this.getApplication().getController('LeftMenu').isSearchPanelVisible() || this.getApplication().getController('Viewport').isSearchBarVisible())) return;
|
||||
|
||||
if (this._state.isHighlightedResults !== val) {
|
||||
this.api.asc_selectSearchingResults(val);
|
||||
|
||||
@ -487,7 +487,7 @@ define([
|
||||
},
|
||||
|
||||
onSelectSearchingResults: function (val) {
|
||||
if (!val && this.getApplication().getController('LeftMenu').isSearchPanelVisible()) return;
|
||||
if (!val && (this.getApplication().getController('LeftMenu').isSearchPanelVisible() || this.getApplication().getController('Viewport').isSearchBarVisible())) return;
|
||||
|
||||
if (this._state.isHighlightedResults !== val) {
|
||||
this.api.asc_selectSearchingResults(val);
|
||||
|
||||
@ -599,7 +599,7 @@ define([
|
||||
},
|
||||
|
||||
onSelectSearchingResults: function (val) {
|
||||
if (!val && this.getApplication().getController('LeftMenu').isSearchPanelVisible()) return;
|
||||
if (!val && (this.getApplication().getController('LeftMenu').isSearchPanelVisible() || this.getApplication().getController('Viewport').isSearchBarVisible())) return;
|
||||
|
||||
if (this._state.isHighlightedResults !== val) {
|
||||
this.api.asc_selectSearchingResults(val);
|
||||
|
||||
Reference in New Issue
Block a user