aboutsummaryrefslogtreecommitdiffstats
path: root/background_page.html
diff options
context:
space:
mode:
authorPhil Crosby2011-01-30 02:11:58 -0800
committerPhil Crosby2011-01-30 02:11:58 -0800
commitae73ad02e936f66bb894fca5da13a631bcd14d31 (patch)
treef6f629d489731661ccb1c482386089fd815486c6 /background_page.html
parent1315254f6b75e6dfc4169b73b51537967416e580 (diff)
downloadvimium-ae73ad02e936f66bb894fca5da13a631bcd14d31.tar.bz2
Split the help dialog into common commands and advanced commands. This closes #284
Diffstat (limited to 'background_page.html')
-rw-r--r--background_page.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/background_page.html b/background_page.html
index ac83a0c3..87b3c9ad 100644
--- a/background_page.html
+++ b/background_page.html
@@ -195,11 +195,12 @@
var html = [];
for (var i = 0; i < commandGroups[group].length; i++) {
var command = commandGroups[group][i];
- bindings = (commandsToKey[command] || [""]).join(", ")
- if (showUnboundCommands || commandsToKey[command])
- {
- html.push("<tr><td>", escapeHtml(bindings),
- "</td><td>:</td><td>", availableCommands[command].description);
+ bindings = (commandsToKey[command] || [""]).join(", ");
+ if (showUnboundCommands || commandsToKey[command]) {
+ html.push(
+ "<tr class='" + (advancedCommands.indexOf(command) >= 0 ? "advanced" : "") + "'>",
+ "<td>", escapeHtml(bindings), "</td>",
+ "<td>:</td><td>", availableCommands[command].description);
if (showCommandNames)
html.push("<span class='commandName'>(" + command + ")</span>");