Commit dab89209 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

isWholeWord->isWholeCell

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48048 954022d7-b5bf-4e40-9824-e11837661b57
parent 9f6f4d3e
...@@ -1797,9 +1797,9 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -1797,9 +1797,9 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.wb.enableKeyEventsHandler(isEnabled); this.wb.enableKeyEventsHandler(isEnabled);
}, },
asc_findText: function (text, scanByRows, scanForward, isMatchCase, isWholeWord) { asc_findText: function (text, scanByRows, scanForward, isMatchCase, isWholeCell) {
var d = this.wb.findCellText({text: text, scanByRows: scanByRows, scanForward: scanForward, var d = this.wb.findCellText({text: text, scanByRows: scanByRows, scanForward: scanForward,
isMatchCase: isMatchCase, isWholeWord: isWholeWord}); isMatchCase: isMatchCase, isWholeCell: isWholeCell});
if (d) { if (d) {
if (d.deltaX) {this.controller.scrollHorizontal(d.deltaX);} if (d.deltaX) {this.controller.scrollHorizontal(d.deltaX);}
if (d.deltaY) {this.controller.scrollVertical(d.deltaY);} if (d.deltaY) {this.controller.scrollVertical(d.deltaY);}
...@@ -1807,7 +1807,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -1807,7 +1807,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
return !!d; return !!d;
}, },
asc_replaceText: function (findWhat, replaceWith, isReplaceAll, isMatchCase, isWholeWord) { asc_replaceText: function (findWhat, replaceWith, isReplaceAll, isMatchCase, isWholeCell) {
// ToDo add code here // ToDo add code here
}, },
......
...@@ -8624,7 +8624,7 @@ ...@@ -8624,7 +8624,7 @@
if (true !== options.isMatchCase) if (true !== options.isMatchCase)
cellText = cellText.toLowerCase(); cellText = cellText.toLowerCase();
if (cellText.indexOf(options.text) >= 0) { if (cellText.indexOf(options.text) >= 0) {
if (true !== options.isWholeWord || options.text.length === cellText.length) if (true !== options.isWholeCell || options.text.length === cellText.length)
return this._setActiveCell(c, r); return this._setActiveCell(c, r);
} }
} }
...@@ -8677,7 +8677,7 @@ ...@@ -8677,7 +8677,7 @@
if (true !== options.isMatchCase) if (true !== options.isMatchCase)
cellText = cellText.toLowerCase(); cellText = cellText.toLowerCase();
if (cellText.indexOf(options.text) >= 0) { if (cellText.indexOf(options.text) >= 0) {
if (true !== options.isWholeWord || options.text.length === cellText.length) if (true !== options.isWholeCell || options.text.length === cellText.length)
return this._setActiveCell(c, r); return this._setActiveCell(c, r);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment