Commit 2f958d1d authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Вставил longAction на replaceAll

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48503 954022d7-b5bf-4e40-9824-e11837661b57
parent e4ac37d4
...@@ -8617,6 +8617,8 @@ ...@@ -8617,6 +8617,8 @@
ar.startRow = this.activeRange.startRow; ar.startRow = this.activeRange.startRow;
var aReplaceCells = []; var aReplaceCells = [];
if (options.isReplaceAll) { if (options.isReplaceAll) {
// На ReplaceAll ставим медленную операцию
t._trigger("slowOperation", true);
var aReplaceCellsIndex = {}; var aReplaceCellsIndex = {};
var optionsFind = {text: options.findWhat, scanByRows: true, scanForward: true, var optionsFind = {text: options.findWhat, scanByRows: true, scanForward: true,
isMatchCase: options.isMatchCase, isWholeCell: options.isWholeCell, isNotSelect: true, activeRange: ar}; isMatchCase: options.isMatchCase, isWholeCell: options.isWholeCell, isNotSelect: true, activeRange: ar};
...@@ -8682,6 +8684,10 @@ ...@@ -8682,6 +8684,10 @@
if (options.indexInArray >= aReplaceCells.length) { if (options.indexInArray >= aReplaceCells.length) {
History.EndTransaction(); History.EndTransaction();
t.model.onEndTriggerAction(); t.model.onEndTriggerAction();
if (options.isReplaceAll) {
// Завершаем медленную операцию
t._trigger("slowOperation", false);
}
t._trigger("onRenameCellTextEnd", options.countFind, options.countReplace); t._trigger("onRenameCellTextEnd", options.countFind, options.countReplace);
return; return;
......
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