diff options
| author | Tim Morgan | 2010-09-03 20:15:59 -0500 |
|---|---|---|
| committer | Tim Morgan | 2010-09-03 20:15:59 -0500 |
| commit | f9f5208f4d88873ee55a4c54062920981ad22eb8 (patch) | |
| tree | 87111f7b00fe7e7b3062d0020a9f0a4c859dcd43 /background_page.html | |
| parent | c1d255a662390027a5a61360d173f46b136478b8 (diff) | |
| download | vimium-f9f5208f4d88873ee55a4c54062920981ad22eb8.tar.bz2 | |
Only show the Help Dialog on the focused frame.
Diffstat (limited to 'background_page.html')
| -rw-r--r-- | background_page.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/background_page.html b/background_page.html index 1efd6ae0..8abe2f9e 100644 --- a/background_page.html +++ b/background_page.html @@ -153,9 +153,9 @@ returnPort.postMessage({ zoomLevel: zoomLevel }); } - function showHelp() { + function showHelp(callback, frameId) { chrome.tabs.getSelected(null, function(tab) { - chrome.tabs.sendRequest(tab.id, { name: "showHelpDialog", dialogHtml: helpDialogHtml() }); + chrome.tabs.sendRequest(tab.id, { name: "showHelpDialog", dialogHtml: helpDialogHtml(), frameId:frameId }); }); } @@ -271,9 +271,9 @@ if (selectionChangedHandlers.length > 0) { selectionChangedHandlers.pop().call(); } }); - function repeatFunction(func, totalCount, currentCount) { + function repeatFunction(func, totalCount, currentCount, frameId) { if (currentCount < totalCount) - func(function() { repeatFunction(func, totalCount, currentCount + 1); }); + func(function() { repeatFunction(func, totalCount, currentCount + 1, frameId); }, frameId); } // Returns the scroll coordinates of the given tab. Pass in a callback of the form: @@ -523,7 +523,7 @@ refreshedCompletionKeys = true; } else { - repeatFunction(this[registryEntry.command], count, 0); + repeatFunction(this[registryEntry.command], count, 0, frameId); } newKeyQueue = ""; |
