Merge pull request #1250 from ONLYOFFICE/fix/bug-52800
[SSE] For Bug 52800
This commit is contained in:
commit
27540b7f88
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue