From 09e0570aeaf9a6d22a14f452206465a1db4bf3bd Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Wed, 3 Feb 2016 02:51:45 +0000 Subject: Move remaining help dialog show code into VimiumHelpDialog.show --- content_scripts/vimium_frontend.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content_scripts') diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 6f084204..69113088 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -793,6 +793,9 @@ VimiumHelpDialog = VimiumHelpDialog.toggleAdvancedCommands, false) @showAdvancedCommands(@getShowAdvancedCommands()) + # Simulating a click on the help dialog makes it the active element for scrolling. + DomUtils.simulateClick document.getElementById "vimiumHelpDialog" + # # Advanced commands are hidden by default so they don't overwhelm new and casual users. # @@ -816,9 +819,6 @@ window.showHelpDialog = (html, fid) -> VimiumHelpDialog.init html VimiumHelpDialog.show() - # Simulating a click on the help dialog makes it the active element for scrolling. - DomUtils.simulateClick document.getElementById "vimiumHelpDialog" - hideHelpDialog = (clickEvent) -> isShowingHelpDialog = false helpDialog = document.getElementById("vimiumHelpDialogContainer") -- cgit v1.2.3