diff options
| author | Stephen Blott | 2016-04-23 06:53:55 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-04-23 07:16:33 +0100 |
| commit | 98ea279485fc456bbe4349559f9c08a24e2c4214 (patch) | |
| tree | fb50db6f3c2e27b103a1ce9bdcb15c397011ec6a /pages/help_dialog.coffee | |
| parent | 546d8b91c2e0991c410a42b2098ff1d478f24c73 (diff) | |
| download | vimium-98ea279485fc456bbe4349559f9c08a24e2c4214.tar.bz2 | |
Show tip re. clicking command names.
It's pretty undiscoverable that you can click command names to yank
them. So, this adds a tip to the bottom of the help dialog.
Also, change the cursor to a pointer when hovering over command names.
Diffstat (limited to 'pages/help_dialog.coffee')
| -rw-r--r-- | pages/help_dialog.coffee | 4 |
1 files changed, 2 insertions, 2 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. |
