Commit b9e7fac1 authored by Alexander.Trofimov's avatar Alexander.Trofimov

Поправил обработку эвентов на PopUpSelector

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55702 954022d7-b5bf-4e40-9824-e11837661b57
parent 7acd5cda
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
PopUpSelector.prototype._onMouseDown = function (event) { PopUpSelector.prototype._onMouseDown = function (event) {
this.skipClose = true; this.skipClose = true;
var element = (event.target || event.srcElement); var element = event.currentTarget;
if (this.isFormula) { if (this.isFormula) {
this._onChangeSelection(element); this._onChangeSelection(element);
} else { } else {
...@@ -214,15 +214,14 @@ ...@@ -214,15 +214,14 @@
this._onMouseDown(event); this._onMouseDown(event);
return; return;
} }
var elementVal = (event ? (event.target || event.srcElement) : this.selectElement).getAttribute("val") + "("; var elementVal = (event ? event.currentTarget : this.selectElement).getAttribute("val") + "(";
this._onInsert(elementVal); this._onInsert(elementVal);
}; };
PopUpSelector.prototype._onMouseOver = function (event) { PopUpSelector.prototype._onMouseOver = function (event) {
if (this.isFormula) if (this.isFormula)
return; return;
var element = (event.target || event.srcElement); this._onChangeSelection(event.currentTarget);
this._onChangeSelection(element);
}; };
PopUpSelector.prototype._onChangeSelection = function (newElement) { PopUpSelector.prototype._onChangeSelection = function (newElement) {
if (null === newElement) if (null === newElement)
......
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