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

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

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