[SSE] Bug 58086
This commit is contained in:
parent
097e2276cb
commit
a2fb77792d
|
@ -196,7 +196,7 @@ define([
|
||||||
|
|
||||||
onSearchNext: function (type, text, e) {
|
onSearchNext: function (type, text, e) {
|
||||||
var isReturnKey = type === 'keydown' && e.keyCode === Common.UI.Keys.RETURN;
|
var isReturnKey = type === 'keydown' && e.keyCode === Common.UI.Keys.RETURN;
|
||||||
if (text && text.length > 0 && (isReturnKey || type !== 'keydown')) {
|
if (isReturnKey || type !== 'keydown') {
|
||||||
this._state.searchText = text;
|
this._state.searchText = text;
|
||||||
if (this.onQuerySearch(type) && (this.searchTimer || isReturnKey)) {
|
if (this.onQuerySearch(type) && (this.searchTimer || isReturnKey)) {
|
||||||
this.hideResults();
|
this.hideResults();
|
||||||
|
@ -222,7 +222,7 @@ define([
|
||||||
|
|
||||||
me.hideResults();
|
me.hideResults();
|
||||||
me._state.searchText = me._state.newSearchText;
|
me._state.searchText = me._state.newSearchText;
|
||||||
if (me._state.newSearchText !== '' && me.onQuerySearch()) {
|
if (me.onQuerySearch()) {
|
||||||
if (me.view.$el.is(':visible')) {
|
if (me.view.$el.is(':visible')) {
|
||||||
me.api.asc_StartTextAroundSearch();
|
me.api.asc_StartTextAroundSearch();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue