summaryrefslogtreecommitdiff
path: root/muttator/content/config.js
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2009-06-14 02:14:03 +1000
committerDoug Kearns <dougkearns@gmail.com>2009-06-14 02:14:03 +1000
commitdbe348687eaf95049a2dfe30807c5fc7d2250a2f (patch)
treea7903714cf3c498fe478d2f35fcbee560e3d0457 /muttator/content/config.js
parentc3ef4d18da08031e44b28fa6e2e83fcf7010e837 (diff)
downloadpentadactyl-dbe348687eaf95049a2dfe30807c5fc7d2250a2f.tar.gz
Add an 'online' option to Muttator.
Also changed Vimperator's 'offline' to make use of Firefox's BrowserOffline.
Diffstat (limited to 'muttator/content/config.js')
-rw-r--r--muttator/content/config.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/muttator/content/config.js b/muttator/content/config.js
index 318c31ef..3ee2f9b4 100644
--- a/muttator/content/config.js
+++ b/muttator/content/config.js
@@ -263,10 +263,33 @@ const config = { //{{{
liberator.loadModule("hints", Hints);
}
+ /////////////////////////////////////////////////////////////////////////////}}}
+ ////////////////////// COMMANDS ////////////////////////////////////////////////
+ /////////////////////////////////////////////////////////////////////////////{{{
+
commands.add(["pref[erences]", "prefs"],
"Show " + config.hostApplication + " preferences",
function () { window.openOptionsDialog(); },
{ argCount: "0" });
+
+ /////////////////////////////////////////////////////////////////////////////}}}
+ ////////////////////// OPTIONS /////////////////////////////////////////////////
+ /////////////////////////////////////////////////////////////////////////////{{{
+
+ options.add(["online"],
+ "Set the 'work offline' option",
+ "boolean", true,
+ {
+ setter: function (value)
+ {
+ if (MailOfflineMgr.isOnline() != value)
+ MailOfflineMgr.toggleOfflineStatus();
+ return value;
+ },
+ getter: function () MailOfflineMgr.isOnline()
+ });
+
+ //}}}
}
}; //}}}