mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bug 302750 Extension manager: can't install multiple updates anymore. r+a=bsmedberg
This commit is contained in:
parent
9f122f5591
commit
a0f8978a3e
@ -35,6 +35,7 @@
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
const kXULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
const kDialog = "dialog";
|
||||
|
||||
/**
|
||||
* Initialize the dialog from the parameters supplied via window.arguments
|
||||
@ -105,7 +106,7 @@ function init() {
|
||||
button.label = buttons[buttonType].label;
|
||||
if (buttons[buttonType].focused)
|
||||
button.focus();
|
||||
button.addEventListener("command", handleButtonCommand, false);
|
||||
document.addEventListener(kDialog + buttonType, handleButtonCommand, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -116,5 +117,5 @@ function init() {
|
||||
* the arguments object.
|
||||
*/
|
||||
function handleButtonCommand(event) {
|
||||
window.arguments[1].result = event.target.getAttribute("dlgtype");
|
||||
window.arguments[1].result = event.type.substr(kDialog.length);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user