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

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

Issue 11015083: Merge labels and access keys into one string in locales (Closed)
Patch Set: Created July 3, 2013, 9:11 a.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
Index: chrome/content/ui/utils.js
===================================================================
--- a/chrome/content/ui/utils.js
+++ b/chrome/content/ui/utils.js
@@ -50,8 +50,17 @@ var {Utils} = require("utils");
/**
* Shortcut for document.getElementById(id)
*/
function E(id)
{
return document.getElementById(id);
}
+
+/**
+ * Split up all labels into the label and access key portions.
+ */
+document.addEventListener("DOMContentLoaded", function splitAllLabelsHandler()
+{
+ document.removeEventListener("DOMContentLoaded", splitAllLabelsHandler, false);
+ Utils.splitAllLabels(document);
+}, false);

Powered by Google App Engine
This is Rietveld