Bug 512173 Removing some unused references to the message-icon class r=dao

This commit is contained in:
Neil Rashbrook 2009-09-28 19:44:01 +01:00
parent 9fc5cf1063
commit d4cc04da3f
2 changed files with 2 additions and 4 deletions

View File

@ -58,7 +58,6 @@ static const char kPromptURL[] = "chrome://global/content/commonDialog.xul";
static const char kSelectPromptURL[] = "chrome://global/content/selectDialog.xul";
static const char kQuestionIconClass[] = "question-icon";
static const char kAlertIconClass[] = "alert-icon";
static const char kWarningIconClass[] = "message-icon";
// We include question-icon for backwards compatibility
static const char kAuthenticationIconClass[] = "authentication-icon question-icon";

View File

@ -166,9 +166,8 @@ function commonDialogOnLoad()
// set the icon
var iconElement = document.getElementById("info.icon");
var iconClass = gCommonDialogParam.GetString(2);
if (!iconClass)
iconClass = "message-icon";
iconElement.setAttribute("class", iconElement.getAttribute("class") + " " + iconClass);
if (iconClass)
iconElement.classList.add(iconClass);
switch (nButtons) {
case 4: