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

Unified Diff: lib/ui.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 | « chrome/content/ui/sendReport.js ('k') | lib/utils.js » ('j') | lib/utils.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/ui.js
===================================================================
--- a/lib/ui.js
+++ b/lib/ui.js
@@ -82,16 +82,18 @@ let optionsObserver =
}
function addCommandHandler(id, handler)
{
let element = doc.getElementById(id);
if (element)
element.addEventListener("command", handler, false);
}
+ Utils.splitAllLabels(doc);
Wladimir Palant 2013/07/09 12:10:59 I forgot about the labels on the settings page tha
+
addCommandHandler("adblockplus-filters", UI.openFiltersDialog.bind(UI));
let {Sync} = require("sync");
let syncEngine = Sync.getEngine();
hideElement("adblockplus-sync", !syncEngine);
let {defaultToolbarPosition, statusbarPosition} = require("appSupport");
let hasToolbar = defaultToolbarPosition && !defaultToolbarPosition.isAddonBar;
« no previous file with comments | « chrome/content/ui/sendReport.js ('k') | lib/utils.js » ('j') | lib/utils.js » ('J')

Powered by Google App Engine
This is Rietveld