diff options
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/help_dialog.coffee | 2 | ||||
| -rw-r--r-- | pages/help_dialog.html | 18 |
2 files changed, 15 insertions, 5 deletions
diff --git a/pages/help_dialog.coffee b/pages/help_dialog.coffee index ebcf8486..6eb13660 100644 --- a/pages/help_dialog.coffee +++ b/pages/help_dialog.coffee @@ -15,7 +15,7 @@ HelpDialog = clickEvent.preventDefault() @hide() false) - @dialogElement.getElementsByClassName("optionsPage")[0].addEventListener("click", (clickEvent) -> + document.getElementById("helpDialogOptionsPage").addEventListener("click", (clickEvent) -> clickEvent.preventDefault() chrome.runtime.sendMessage({handler: "openOptionsPageInNewTab"}) false) diff --git a/pages/help_dialog.html b/pages/help_dialog.html index 389f09f2..e95dd403 100644 --- a/pages/help_dialog.html +++ b/pages/help_dialog.html @@ -16,10 +16,20 @@ <!-- Note that the template placeholders (e.g. "pageNavigation") will be filled in by the background page with the up-to-date key bindings when the dialog is shown. --> <div id="vimiumHelpDialog"> - <a class="vimiumReset optionsPage" href="#">Options</a> - <a class="vimiumReset wikiPage" href="https://github.com/philc/vimium/wiki" target="_blank">Wiki</a> - <a class="vimiumReset closeButton" href="#">×</a> - <div id="vimiumTitle" class="vimiumReset"><span class="vimiumReset" style="color:#2f508e">Vim</span>ium <span id="help-dialog-title"></span></div> + <div> + <table> + <tr> + <td> + <span id="vimiumTitle" class="vimiumReset"><span class="vimiumReset" style="color:#2f508e">Vim</span>ium <span id="help-dialog-title"></span></span> + </td> + <td class="vimiumHelpDialogTopButtons"> + <a class="vimiumReset" id="helpDialogOptionsPage" href="#">Options</a> + <a class="vimiumReset" id="helpDialogWikiPage" href="https://github.com/philc/vimium/wiki" target="_blank">Wiki</a> + <a class="vimiumReset closeButton" href="#">×</a> + </td> + </tr> + </table> + </div> <div class="vimiumReset vimiumDivider"></div> <div class="vimiumReset vimiumColumn"> <table class="vimiumReset"> |
