Bug 638431 - Hover feedback missing for disabled splitmenus. r=gavin

This commit is contained in:
Dão Gottwald 2011-03-23 12:36:13 +01:00
Родитель e36a29484b
Коммит 6f94cbba35
1 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

@ -1143,19 +1143,20 @@
<handlers>
<handler event="mouseover"><![CDATA[
if (this.getAttribute("active") != "true" &&
this.getAttribute("disabled") != "true") {
if (this.getAttribute("active") != "true") {
this.setAttribute("active", "true");
let event = document.createEvent("Events");
event.initEvent("DOMMenuItemActive", true, false);
this.dispatchEvent(event);
let self = this;
setTimeout(function () {
if (self.getAttribute("active") == "true")
self.menu.open = true;
}, this._menuDelay);
if (this.getAttribute("disabled") != "true") {
let self = this;
setTimeout(function () {
if (self.getAttribute("active") == "true")
self.menu.open = true;
}, this._menuDelay);
}
}
]]></handler>