aboutsummaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/help_dialog.coffee4
-rw-r--r--pages/help_dialog.html14
2 files changed, 15 insertions, 3 deletions
diff --git a/pages/help_dialog.coffee b/pages/help_dialog.coffee
index 6eb13660..28aafb4a 100644
--- a/pages/help_dialog.coffee
+++ b/pages/help_dialog.coffee
@@ -19,7 +19,7 @@ HelpDialog =
clickEvent.preventDefault()
chrome.runtime.sendMessage({handler: "openOptionsPageInNewTab"})
false)
- @dialogElement.getElementsByClassName("toggleAdvancedCommands")[0].addEventListener("click",
+ document.getElementById("toggleAdvancedCommands").addEventListener("click",
HelpDialog.toggleAdvancedCommands, false)
document.documentElement.addEventListener "click", (event) =>
@@ -58,7 +58,7 @@ HelpDialog =
Settings.set("helpDialog_showAdvancedCommands", !showAdvanced)
showAdvancedCommands: (visible) ->
- HelpDialog.dialogElement.getElementsByClassName("toggleAdvancedCommands")[0].innerHTML =
+ document.getElementById("toggleAdvancedCommands").innerHTML =
if visible then "Hide advanced commands" else "Show advanced commands"
# Add/remove the showAdvanced class to show/hide advanced commands.
diff --git a/pages/help_dialog.html b/pages/help_dialog.html
index e16b0139..a0ba6de5 100644
--- a/pages/help_dialog.html
+++ b/pages/help_dialog.html
@@ -65,11 +65,23 @@
</table>
</div>
+ <div>
+ <table>
+ <tr>
+ <td class="helpDialogBottomLeft">
+ <span id="help-dialog-tip"></span>
+ </td>
+ <td class="helpDialogBottomRight">
+ <a href="#" id="toggleAdvancedCommands">Show advanced commands</a>
+ </td>
+ </tr>
+ </table>
+ </div>
+
<br clear="both"/>
<div class="vimiumReset vimiumDivider"></div>
<div id="vimiumHelpDialogFooter" class="vimiumReset">
- <a href="#" class="vimiumReset toggleAdvancedCommands">Show advanced commands</a>
<div class="vimiumReset vimiumColumn">
Enjoying Vimium?
<a class="vimiumHelDialogLink" target="_blank"