aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932016-02-03 02:51:45 +0000
committermrmr19932016-02-03 02:51:45 +0000
commit09e0570aeaf9a6d22a14f452206465a1db4bf3bd (patch)
treee4b51b2b408b0ada83a735b678b49b1ab53612cd
parent21c283fb773bb17c631504b2d2ad2f2bbbb1c723 (diff)
downloadvimium-09e0570aeaf9a6d22a14f452206465a1db4bf3bd.tar.bz2
Move remaining help dialog show code into VimiumHelpDialog.show
-rw-r--r--content_scripts/vimium_frontend.coffee6
1 files changed, 3 insertions, 3 deletions
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")