Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/ui/sendReport.js

Issue 11015083: Merge labels and access keys into one string in locales (Closed)
Patch Set: Created July 9, 2013, 12:03 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/ui.js » ('j') | lib/ui.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/sendReport.js
===================================================================
--- a/chrome/content/ui/sendReport.js
+++ b/chrome/content/ui/sendReport.js
@@ -1196,26 +1196,26 @@ function initWizard()
function updateNextButton()
{
let nextButton = document.documentElement.getButton("next");
if (!nextButton)
return;
if (document.documentElement.currentPage.id == "commentPage")
{
- if (!nextButton.hasAttribute("_origLabel"))
+ if (!("_origLabel" in nextButton))
{
nextButton._origLabel = nextButton.label;
nextButton._origAccessKey = nextButton.accessKey;
[nextButton.label, nextButton.accessKey] = Utils.splitLabel(document.documentElement.getAttribute("sendbuttonlabel"));
}
}
else
{
- if (nextButton.hasAttribute("_origLabel"))
+ if ("_origLabel" in nextButton)
{
nextButton.label = nextButton._origLabel;
nextButton.accessKey = nextButton._origAccessKey;
delete nextButton._origLabel;
delete nextButton._origAccessKey;
}
}
}
« no previous file with comments | « no previous file | lib/ui.js » ('j') | lib/ui.js » ('J')

Powered by Google App Engine
This is Rietveld