aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.js
diff options
context:
space:
mode:
authorPhil Crosby2012-09-01 12:18:27 -0700
committerPhil Crosby2012-09-01 12:18:27 -0700
commit7876a0618c93e950bea4faba4c26076cef394b96 (patch)
treee081961b71da3e475a99d6bf9aafc255f943b050 /background_scripts/main.js
parent666a2f3c091f0d9268a0883f17a46e565331fc12 (diff)
parent354c0c5467ee589c3bb8e2009a3e7412f33ed1ab (diff)
downloadvimium-7876a0618c93e950bea4faba4c26076cef394b96.tar.bz2
Merge pull request #628 from mgarriott/help_bug_fixes
Help Dialog bug fixes
Diffstat (limited to 'background_scripts/main.js')
-rw-r--r--background_scripts/main.js7
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;
}