aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authormrmr19932016-02-03 04:48:41 +0000
committermrmr19932016-02-03 04:48:41 +0000
commit466f2f6af092995b623e9b6f9f5a85ab767911c6 (patch)
tree927108ab4b51ef54618ba23839d821e6cc047742 /content_scripts
parent22db0d6191d1dba42b206327d1f1d58323314199 (diff)
downloadvimium-466f2f6af092995b623e9b6f9f5a85ab767911c6.tar.bz2
Rename VimiumHelpDialog to HelpDialog
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee20
1 files changed, 10 insertions, 10 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index a1affc50..da1f4dde 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -220,7 +220,7 @@ initializeOnDomReady = ->
# We only initialize the vomnibar in the tab's main frame, because it's only ever opened there.
Vomnibar.init() if DomUtils.isTopFrame()
HUD.init()
- VimiumHelpDialog.init()
+ HelpDialog.init()
registerFrame = ->
# Don't register frameset containers; focusing them is no use.
@@ -534,7 +534,7 @@ onKeydown = (event) ->
keyChar = "<" + keyChar + ">"
if (isShowingHelpDialog && KeyboardUtils.isEscape(event))
- VimiumHelpDialog.hide()
+ HelpDialog.hide()
DomUtils.suppressEvent event
KeydownEvents.push event
return @stopBubblingAndTrue
@@ -769,7 +769,7 @@ window.enterFindMode = ->
Marks.setPreviousPosition()
new FindMode()
-window.VimiumHelpDialog =
+window.HelpDialog =
container: null
dialogElement: null
@@ -795,7 +795,7 @@ window.VimiumHelpDialog =
chrome.runtime.sendMessage({handler: "openOptionsPageInNewTab"})
false)
@dialogElement.getElementsByClassName("toggleAdvancedCommands")[0].addEventListener("click",
- VimiumHelpDialog.toggleAdvancedCommands, false)
+ HelpDialog.toggleAdvancedCommands, false)
isReady: -> document.body? and @container?
@@ -820,24 +820,24 @@ window.VimiumHelpDialog =
#
toggleAdvancedCommands: (event) ->
event.preventDefault()
- showAdvanced = VimiumHelpDialog.getShowAdvancedCommands()
- VimiumHelpDialog.showAdvancedCommands(!showAdvanced)
+ showAdvanced = HelpDialog.getShowAdvancedCommands()
+ HelpDialog.showAdvancedCommands(!showAdvanced)
Settings.set("helpDialog_showAdvancedCommands", !showAdvanced)
showAdvancedCommands: (visible) ->
- VimiumHelpDialog.dialogElement.getElementsByClassName("toggleAdvancedCommands")[0].innerHTML =
+ HelpDialog.dialogElement.getElementsByClassName("toggleAdvancedCommands")[0].innerHTML =
if visible then "Hide advanced commands" else "Show advanced commands"
# Add/remove the showAdvanced class to show/hide advanced commands.
addOrRemove = if visible then "add" else "remove"
- VimiumHelpDialog.dialogElement.classList[addOrRemove] "showAdvanced"
+ HelpDialog.dialogElement.classList[addOrRemove] "showAdvanced"
toggleHelpDialog = (html, fid) ->
return unless fid == frameId
if isShowingHelpDialog
- VimiumHelpDialog.hide()
+ HelpDialog.hide()
else
- VimiumHelpDialog.show html
+ HelpDialog.show html
initializePreDomReady()
DomUtils.documentReady initializeOnDomReady