diff options
| author | Phil Crosby | 2011-01-30 02:11:58 -0800 |
|---|---|---|
| committer | Phil Crosby | 2011-01-30 02:11:58 -0800 |
| commit | ae73ad02e936f66bb894fca5da13a631bcd14d31 (patch) | |
| tree | f6f629d489731661ccb1c482386089fd815486c6 /background_page.html | |
| parent | 1315254f6b75e6dfc4169b73b51537967416e580 (diff) | |
| download | vimium-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.html | 11 |
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>"); |
