зеркало из 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) {
|
if (btn) {
|
||||||
btn.addEventListener("command", this._handleButtonCommand, true);
|
btn.addEventListener("command", this._handleButtonCommand, true);
|
||||||
// don't set pre-defined labels on explicit buttons
|
// don't override custom labels with pre-defined labels on explicit buttons
|
||||||
if (btns.length == 0)
|
if (!btn.hasAttribute("label"))
|
||||||
btn.setAttribute("label", this.mStrBundle.GetStringFromName("button-"+aDlgType));
|
btn.setAttribute("label", this.mStrBundle.GetStringFromName("button-"+aDlgType));
|
||||||
btn._dialog = this;
|
btn._dialog = this;
|
||||||
}
|
}
|
||||||
return btn;
|
return btn;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче