From a5e2c7f91282dda41131739816d196364eb27736 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Wed, 13 Aug 2008 22:40:21 +0000 Subject: [PATCH] [muttator] fixed help, still does not work somehow. xmlhttprequest not working in thunderbird? --- content/liberator.js | 2 +- content/muttator.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/content/liberator.js b/content/liberator.js index 299071f3..b8866547 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -372,7 +372,7 @@ const liberator = (function () //{{{ function getHelpCompletions(filter) { - var files = liberator.config.helpFiles; + var files = liberator.config.helpFiles || []; var res = []; for (var i = 0; i < files.length; i++) diff --git a/content/muttator.js b/content/muttator.js index 84cf86ab..b4f86a9c 100644 --- a/content/muttator.js +++ b/content/muttator.js @@ -97,6 +97,14 @@ liberator.config = { //{{{ function () { liberator.buffer.viewSelectionSource(); }]*/ ], + // they are sorted by relevance, not alphabetically + helpFiles: ["intro.html", "tutorial.html", "starting.html", + "browsing.html", "buffer.html", "pattern.html", "options.html", + "tabs.html", "hints.html", "map.html", "eval.html", "marks.html", + "repeat.html", "autocommands.html", "print.html", "developer.html", + "various.html" + ], + init: function () { // don't wait too long when selecting new messages