[Mobile] Fix Bug 47699
This commit is contained in:
parent
36599894d6
commit
2d2a47aa2d
|
@ -306,7 +306,7 @@ define([
|
|||
matchword = Common.SharedSettings.get('search-highlight') || false;
|
||||
|
||||
if (search && search.length) {
|
||||
if (!this.api.asc_replaceText(search, replace, false, matchcase, matchword)) {
|
||||
if (!this.api.asc_replaceText(search, replace || '', false, matchcase, matchword)) {
|
||||
var me = this;
|
||||
uiApp.alert(
|
||||
'',
|
||||
|
@ -324,7 +324,7 @@ define([
|
|||
matchword = Common.SharedSettings.get('search-highlight') || false;
|
||||
|
||||
if (search && search.length) {
|
||||
this.api.asc_replaceText(search, replace, true, matchcase, matchword);
|
||||
this.api.asc_replaceText(search, replace || '', true, matchcase, matchword);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -294,7 +294,7 @@ define([
|
|||
var matchcase = Common.SharedSettings.get('search-case-sensitive') || false;
|
||||
|
||||
if (search && search.length) {
|
||||
if (!this.api.asc_replaceText(search, replace, false, matchcase)) {
|
||||
if (!this.api.asc_replaceText(search, replace || '', false, matchcase)) {
|
||||
var me = this;
|
||||
uiApp.alert(
|
||||
'',
|
||||
|
@ -311,7 +311,7 @@ define([
|
|||
var matchcase = Common.SharedSettings.get('search-case-sensitive') || false;
|
||||
|
||||
if (search && search.length) {
|
||||
this.api.asc_replaceText(search, replace, true, matchcase);
|
||||
this.api.asc_replaceText(search, replace || '', true, matchcase);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -345,7 +345,7 @@ define([
|
|||
|
||||
var options = new Asc.asc_CFindOptions();
|
||||
options.asc_setFindWhat(search);
|
||||
options.asc_setReplaceWith(replace);
|
||||
options.asc_setReplaceWith(replace || '');
|
||||
options.asc_setIsMatchCase(matchCase);
|
||||
options.asc_setIsWholeCell(matchCell);
|
||||
options.asc_setScanOnOnlySheet(lookInSheet);
|
||||
|
@ -369,7 +369,7 @@ define([
|
|||
|
||||
var options = new Asc.asc_CFindOptions();
|
||||
options.asc_setFindWhat(search);
|
||||
options.asc_setReplaceWith(replace);
|
||||
options.asc_setReplaceWith(replace || '');
|
||||
options.asc_setIsMatchCase(matchCase);
|
||||
options.asc_setIsWholeCell(matchCell);
|
||||
options.asc_setScanOnOnlySheet(lookInSheet);
|
||||
|
|
Loading…
Reference in a new issue