зеркало из https://github.com/mozilla/pjs.git
Bug 512173 Removing some unused references to the message-icon class r=dao
This commit is contained in:
Родитель
be2aecc791
Коммит
fced675d73
|
@ -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 kSelectPromptURL[] = "chrome://global/content/selectDialog.xul";
|
||||||
static const char kQuestionIconClass[] = "question-icon";
|
static const char kQuestionIconClass[] = "question-icon";
|
||||||
static const char kAlertIconClass[] = "alert-icon";
|
static const char kAlertIconClass[] = "alert-icon";
|
||||||
static const char kWarningIconClass[] = "message-icon";
|
|
||||||
// We include question-icon for backwards compatibility
|
// We include question-icon for backwards compatibility
|
||||||
static const char kAuthenticationIconClass[] = "authentication-icon question-icon";
|
static const char kAuthenticationIconClass[] = "authentication-icon question-icon";
|
||||||
|
|
||||||
|
|
|
@ -166,9 +166,8 @@ function commonDialogOnLoad()
|
||||||
// set the icon
|
// set the icon
|
||||||
var iconElement = document.getElementById("info.icon");
|
var iconElement = document.getElementById("info.icon");
|
||||||
var iconClass = gCommonDialogParam.GetString(2);
|
var iconClass = gCommonDialogParam.GetString(2);
|
||||||
if (!iconClass)
|
if (iconClass)
|
||||||
iconClass = "message-icon";
|
iconElement.classList.add(iconClass);
|
||||||
iconElement.setAttribute("class", iconElement.getAttribute("class") + " " + iconClass);
|
|
||||||
|
|
||||||
switch (nButtons) {
|
switch (nButtons) {
|
||||||
case 4:
|
case 4:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче