[DE PE SSE] Fix bug 58193
This commit is contained in:
parent
f35f86c5bf
commit
55dda4ad47
|
@ -444,6 +444,10 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
getSearchText: function () {
|
||||
return this._state.searchText;
|
||||
},
|
||||
|
||||
notcriticalErrorTitle: 'Warning',
|
||||
warnReplaceString: '{0} is not a valid special character for the Replace With box.',
|
||||
textReplaceSuccess: 'Search has been done. {0} occurrences have been replaced',
|
||||
|
|
|
@ -293,7 +293,8 @@ define([
|
|||
}, this));
|
||||
}
|
||||
if (this.header.btnSearch.pressed) {
|
||||
this.searchBar.show(this.api.asc_GetSelectedText());
|
||||
var selectedText = this.api.asc_GetSelectedText();
|
||||
this.searchBar.show(selectedText && selectedText.trim() || this.getApplication().getController('Search').getSearchText());
|
||||
} else {
|
||||
this.searchBar.hide();
|
||||
}
|
||||
|
|
|
@ -397,6 +397,10 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
getSearchText: function () {
|
||||
return this._state.searchText;
|
||||
},
|
||||
|
||||
notcriticalErrorTitle: 'Warning',
|
||||
warnReplaceString: '{0} is not a valid special character for the Replace With box.',
|
||||
textReplaceSuccess: 'Search has been done. {0} occurrences have been replaced',
|
||||
|
|
|
@ -355,7 +355,8 @@ define([
|
|||
}, this));
|
||||
}
|
||||
if (this.header.btnSearch.pressed) {
|
||||
this.searchBar.show(this.api.asc_GetSelectedText());
|
||||
var selectedText = this.api.asc_GetSelectedText();
|
||||
this.searchBar.show(selectedText && selectedText.trim() || this.getApplication().getController('Search').getSearchText());
|
||||
} else {
|
||||
this.searchBar.hide();
|
||||
}
|
||||
|
|
|
@ -57,7 +57,13 @@ define([
|
|||
'SearchBar': {
|
||||
'search:back': _.bind(this.onSearchNext, this, 'back'),
|
||||
'search:next': _.bind(this.onSearchNext, this, 'next'),
|
||||
'search:input': _.bind(this.onInputSearchChange, this),
|
||||
'search:input': _.bind(function (text) {
|
||||
if (this._state.searchText === text) {
|
||||
Common.NotificationCenter.trigger('search:updateresults', this._state.currentResult, this._state.resultsNumber);
|
||||
return;
|
||||
}
|
||||
this.onInputSearchChange(text);
|
||||
}, this),
|
||||
'search:keydown': _.bind(this.onSearchNext, this, 'keydown'),
|
||||
'show': _.bind(this.onSelectSearchingResults, this, true),
|
||||
'hide': _.bind(this.onSelectSearchingResults, this, false)
|
||||
|
@ -559,6 +565,10 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
getSearchText: function () {
|
||||
return this._state.searchText;
|
||||
},
|
||||
|
||||
textNoTextFound: 'The data you have been searching for could not be found. Please adjust your search options.',
|
||||
textReplaceSuccess: 'Search has been done. {0} occurrences have been replaced',
|
||||
textReplaceSkipped: 'The replacement has been made. {0} occurrences were skipped.',
|
||||
|
|
|
@ -321,7 +321,8 @@ define([
|
|||
}, this));
|
||||
}
|
||||
if (this.header.btnSearch.pressed) {
|
||||
this.searchBar.show(this.api.asc_GetSelectedText());
|
||||
var selectedText = this.api.asc_GetSelectedText();
|
||||
this.searchBar.show(selectedText && selectedText.trim() || this.getApplication().getController('Search').getSearchText());
|
||||
} else {
|
||||
this.searchBar.hide();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue