aboutsummaryrefslogtreecommitdiffstats
path: root/vimiumFrontend.js
diff options
context:
space:
mode:
authorTim Morgan2010-09-03 20:15:59 -0500
committerTim Morgan2010-09-03 20:15:59 -0500
commitf9f5208f4d88873ee55a4c54062920981ad22eb8 (patch)
tree87111f7b00fe7e7b3062d0020a9f0a4c859dcd43 /vimiumFrontend.js
parentc1d255a662390027a5a61360d173f46b136478b8 (diff)
downloadvimium-f9f5208f4d88873ee55a4c54062920981ad22eb8.tar.bz2
Only show the Help Dialog on the focused frame.
Diffstat (limited to 'vimiumFrontend.js')
-rw-r--r--vimiumFrontend.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index 331e9afe..829ded5e 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -66,7 +66,7 @@ function initializePreDomReady() {
if (isShowingHelpDialog)
hideHelpDialog();
else
- showHelpDialog(request.dialogHtml);
+ showHelpDialog(request.dialogHtml, request.frameId);
else if (request.name == "refreshCompletionKeys")
refreshCompletionKeys(request.completionKeys);
sendResponse({}); // Free up the resources used by this open connection.
@@ -475,8 +475,8 @@ function exitFindMode() {
HUD.hide();
}
-function showHelpDialog(html) {
- if (isShowingHelpDialog || !document.body)
+function showHelpDialog(html, fid) {
+ if (isShowingHelpDialog || !document.body || fid != frameId)
return;
isShowingHelpDialog = true;
var container = document.createElement("div");