Merge pull request #1250 from ONLYOFFICE/fix/bug-52800

[SSE] For Bug 52800
This commit is contained in:
Julia Radzhabova 2021-10-19 13:34:11 +03:00 committed by GitHub
commit 27540b7f88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -551,7 +551,7 @@ define([
/** coauthoring end **/ /** coauthoring end **/
onQuerySearch: function(d, w, opts) { onQuerySearch: function(d, w, opts) {
if (opts.textsearch && opts.textsearch.length) { // if (opts.textsearch && opts.textsearch.length) {
var options = this.dlgSearch.findOptions; var options = this.dlgSearch.findOptions;
options.asc_setFindWhat(opts.textsearch); options.asc_setFindWhat(opts.textsearch);
options.asc_setScanForward(d != 'back'); options.asc_setScanForward(d != 'back');
@ -570,11 +570,11 @@ define([
} }
}); });
} }
} // }
}, },
onQueryReplace: function(w, opts) { onQueryReplace: function(w, opts) {
if (!_.isEmpty(opts.textsearch)) { // if (!_.isEmpty(opts.textsearch)) {
this.api.isReplaceAll = false; this.api.isReplaceAll = false;
var options = this.dlgSearch.findOptions; var options = this.dlgSearch.findOptions;
@ -588,11 +588,11 @@ define([
options.asc_setIsReplaceAll(false); options.asc_setIsReplaceAll(false);
this.api.asc_replaceText(options); this.api.asc_replaceText(options);
} // }
}, },
onQueryReplaceAll: function(w, opts) { onQueryReplaceAll: function(w, opts) {
if (!_.isEmpty(opts.textsearch)) { // if (!_.isEmpty(opts.textsearch)) {
this.api.isReplaceAll = true; this.api.isReplaceAll = true;
var options = this.dlgSearch.findOptions; var options = this.dlgSearch.findOptions;
@ -606,7 +606,7 @@ define([
options.asc_setIsReplaceAll(true); options.asc_setIsReplaceAll(true);
this.api.asc_replaceText(options); this.api.asc_replaceText(options);
} // }
}, },
onSearchHighlight: function(w, highlight) { onSearchHighlight: function(w, highlight) {