From b789cd80ffda1ba397b7acfe73231efec76dda8e Mon Sep 17 00:00:00 2001 From: "rob_strong%exchangecode.com" Date: Fri, 5 Aug 2005 23:47:11 +0000 Subject: [PATCH] Bug 302750 Extension manager: can't install multiple updates anymore. r+a=bsmedberg git-svn-id: svn://10.0.0.236/trunk@177196 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/toolkit/mozapps/extensions/content/list.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/toolkit/mozapps/extensions/content/list.js b/mozilla/toolkit/mozapps/extensions/content/list.js index 74cbaa3aed7..246c54e9dd3 100755 --- a/mozilla/toolkit/mozapps/extensions/content/list.js +++ b/mozilla/toolkit/mozapps/extensions/content/list.js @@ -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); }