зеркало из https://github.com/mozilla/gecko-dev.git
Bug 854035 - PopupNotification should reset mainAction label when it's removed. r=MattN
This commit is contained in:
Родитель
3f7734b4a2
Коммит
979b899918
|
@ -473,7 +473,14 @@ PopupNotifications.prototype = {
|
|||
popupnotification.setAttribute("buttoncommand", "PopupNotifications._onButtonCommand(event);");
|
||||
popupnotification.setAttribute("menucommand", "PopupNotifications._onMenuCommand(event);");
|
||||
popupnotification.setAttribute("closeitemcommand", "PopupNotifications._dismiss();event.stopPropagation();");
|
||||
} else {
|
||||
popupnotification.removeAttribute("buttonlabel");
|
||||
popupnotification.removeAttribute("buttonaccesskey");
|
||||
popupnotification.removeAttribute("buttoncommand");
|
||||
popupnotification.removeAttribute("menucommand");
|
||||
popupnotification.removeAttribute("closeitemcommand");
|
||||
}
|
||||
|
||||
if (n.options.popupIconURL)
|
||||
popupnotification.setAttribute("icon", n.options.popupIconURL);
|
||||
popupnotification.notification = n;
|
||||
|
|
Загрузка…
Ссылка в новой задаче