зеркало из https://github.com/mozilla/pjs.git
111396 - tabbing in dialogs gives incorrect results, r=morse, sr=hyatt
This commit is contained in:
Родитель
0a726b383e
Коммит
7216a7a59e
|
@ -125,9 +125,9 @@
|
|||
|
||||
if (btn) {
|
||||
btn.addEventListener("command", this._handleButtonCommand, true);
|
||||
// don't set pre-defined labels on explicit buttons
|
||||
if (btns.length == 0)
|
||||
btn.setAttribute("label", this.mStrBundle.GetStringFromName("button-"+aDlgType));
|
||||
// don't override custom labels with pre-defined labels on explicit buttons
|
||||
if (!btn.hasAttribute("label"))
|
||||
btn.setAttribute("label", this.mStrBundle.GetStringFromName("button-"+aDlgType));
|
||||
btn._dialog = this;
|
||||
}
|
||||
return btn;
|
||||
|
|
Загрузка…
Ссылка в новой задаче