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

Правка бага http://bugzserver/show_bug.cgi?id=23645

При вводе в строку формул в режиме просмотра, было падение (теперь стоит проверка)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55301 954022d7-b5bf-4e40-9824-e11837661b57
parent 66f73444
...@@ -783,7 +783,7 @@ ...@@ -783,7 +783,7 @@
_updateFormulaEditMod: function (bIsOpen) { _updateFormulaEditMod: function (bIsOpen) {
var isFormula = this.isFormula(); var isFormula = this.isFormula();
if (!bIsOpen) if (!bIsOpen)
this._updateEditorState(isFormula) this._updateEditorState(isFormula);
this.handlers.trigger("updateFormulaEditMod", isFormula); this.handlers.trigger("updateFormulaEditMod", isFormula);
var ret1 = this._parseFormulaRanges(); var ret1 = this._parseFormulaRanges();
var ret2 = this.canEnterCellRange(); var ret2 = this.canEnterCellRange();
...@@ -2258,6 +2258,9 @@ ...@@ -2258,6 +2258,9 @@
/** @param event {jQuery.Event} */ /** @param event {jQuery.Event} */
_onInputTextArea: function (event) { _onInputTextArea: function (event) {
if (this.handlers.trigger("isViewerMode"))
return true;
if (this.isUpdateValue) { if (this.isUpdateValue) {
// Для языков с иероглифами не приходят эвенты с клавиатуры, поэтому обработаем здесь // Для языков с иероглифами не приходят эвенты с клавиатуры, поэтому обработаем здесь
this.skipTLUpdate = true; this.skipTLUpdate = true;
......
...@@ -410,7 +410,8 @@ ...@@ -410,7 +410,8 @@
self.handlers.trigger("asc_onCanUndoChanged", bCanUndo); self.handlers.trigger("asc_onCanUndoChanged", bCanUndo);
self.handlers.trigger("asc_onCanRedoChanged", bCanRedo); self.handlers.trigger("asc_onCanRedoChanged", bCanRedo);
}, },
"applyCloseEvent" : function () {self.controller._onWindowKeyDown.apply(self.controller, arguments);} "applyCloseEvent" : function () {self.controller._onWindowKeyDown.apply(self.controller, arguments);},
"isViewerMode" : function () {return self.controller.settings.isViewerMode;}
}, },
/*settings*/{ /*settings*/{
font: this.defaultFont font: this.defaultFont
......
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