Commit 60bc6a6f authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

undoAllMode -> noUpdateMode

delete undoAll

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68034 954022d7-b5bf-4e40-9824-e11837661b57
parent de55e8ef
......@@ -105,7 +105,7 @@
this.undoList = [];
this.redoList = [];
this.undoMode = false;
this.undoAllMode = false;
this.noUpdateMode = false;
this.selectionBegin = -1;
this.selectionEnd = -1;
this.isSelectMode = c_oAscCellEditorSelectState.no;
......@@ -313,9 +313,9 @@
var newValue = arrAutoComplete[0];
this.selectionBegin = this.textRender.getBeginOfText();
this.cursorPos = this.selectionEnd = this.textRender.getEndOfText();
this.undoAllMode = true;
this.noUpdateMode = true;
this._addChars(newValue);
this.undoAllMode = false;
this.noUpdateMode = false;
}
}
}
......@@ -422,16 +422,6 @@
this._performAction(this.undoList, this.redoList);
};
CellEditor.prototype.undoAll = function() {
this.isUpdateValue = false;
this.undoAllMode = true;
while (this.undoList.length > 0) {
this.undo();
}
this._update();
this.undoAllMode = false;
};
CellEditor.prototype.redo = function() {
this._performAction(this.redoList, this.undoList);
};
......@@ -1114,9 +1104,7 @@
}
}
if (!t.undoAllMode) {
t.handlers.trigger("updated", s, t.cursorPos, isFormula, funcPos, funcName);
}
};
CellEditor.prototype._expandWidth = function() {
......@@ -1604,7 +1592,7 @@
}
this.cursorPos = pos + str.length;
if (!this.undoAllMode) {
if (!this.noUpdateMode) {
this._update();
}
};
......@@ -1684,7 +1672,7 @@
}
t.cursorPos = b;
if (!t.undoAllMode) {
if (!t.noUpdateMode) {
t._update();
}
};
......@@ -1842,7 +1830,7 @@
t._mergeFragments();
t.cursorPos = pos + t._getFragmentsLength(f);
if (!t.undoAllMode) {
if (!t.noUpdateMode) {
t._update();
}
};
......
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