diff options
| author | Matt Garriott | 2012-08-25 19:07:25 -0600 |
|---|---|---|
| committer | Matt Garriott | 2012-08-25 19:07:25 -0600 |
| commit | 4ec5cc6fcaaac22826b3e0535282733a2368d1e4 (patch) | |
| tree | 36964e41fbae183bbf9edc4efa74c32a9cee035e /background_scripts | |
| parent | bebb767410db71e6cd493a7fe09a0aba4c4613a2 (diff) | |
| download | vimium-4ec5cc6fcaaac22826b3e0535282733a2368d1e4.tar.bz2 | |
The help dialog will now properly read the user's preference for showing advanced commands.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/main.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/background_scripts/main.js b/background_scripts/main.js index 6e6a3978..8e75314e 100644 --- a/background_scripts/main.js +++ b/background_scripts/main.js @@ -23,6 +23,7 @@ var portHandlers = { var sendRequestHandlers = { getCompletionKeys: getCompletionKeysRequest, getCurrentTabUrl: getCurrentTabUrl, + getShowAdvancedCommands: getShowAdvancedCommands, openUrlInNewTab: openUrlInNewTab, openUrlInCurrentTab: openUrlInCurrentTab, openOptionsPageInNewTab: openOptionsPageInNewTab, @@ -128,6 +129,10 @@ function addExcludedUrl(url) { }); } +function getShowAdvancedCommands(request){ + return Settings.get("helpDialog_showAdvancedCommands"); +} + function saveHelpDialogSettings(request) { Settings.set("helpDialog_showAdvancedCommands", request.showAdvancedCommands); } @@ -155,8 +160,6 @@ function helpDialogHtml(showUnboundCommands, showCommandNames, customTitle) { showUnboundCommands, showCommandNames)); dialogHtml = dialogHtml.replace("{{version}}", currentVersion); dialogHtml = dialogHtml.replace("{{title}}", customTitle || "Help"); - dialogHtml = dialogHtml.replace("{{showAdvancedCommands}}", - Settings.get("helpDialog_showAdvancedCommands")); return dialogHtml; } |
