Commit 1c88afe3 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

this.handlers.trigger("getCellFormulaEnterWSOpen" ).model

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68078 954022d7-b5bf-4e40-9824-e11837661b57
parent 1b9ac3a6
......@@ -807,7 +807,7 @@
var parres = parserTest.parse(s,cb);
var __e__ = new Date().getTime();
console.log("e-s "+ (__e__ - __s__));*/
var ws = this.handlers.trigger("getCellFormulaEnterWSOpen" ).model || this.handlers.trigger("getActiveWS");
var ws = this.handlers.trigger("getCellFormulaEnterWSOpen" ) ? this.handlers.trigger("getCellFormulaEnterWSOpen" ).model : this.handlers.trigger("getActiveWS");
this._formula = new parserFormula( s.substr( 1 ), "A1", ws );
this._formula.parse();
......@@ -903,7 +903,7 @@
/*не нашли диапазонов под курсором, парсим формулу*/
var r, offset, _e, _s, wsName = null, ret = false,
ws = this.handlers.trigger("getCellFormulaEnterWSOpen" ).model || this.handlers.trigger("getActiveWS");
ws = this.handlers.trigger("getCellFormulaEnterWSOpen" ) ? this.handlers.trigger("getCellFormulaEnterWSOpen" ).model : this.handlers.trigger("getActiveWS");
this._formula = new parserFormula( s.substr( 1 ), "A1", ws );
this._formula.parse();
......
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