1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 07:34:11 +01:00

Minor changes.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-05 03:49:44 -05:00
parent 01935dbb64
commit 1f02fedfb3
2 changed files with 12 additions and 8 deletions

View File

@@ -106,9 +106,13 @@ var Download = Class("Download", {
let file = io.File(this.targetFile);
if (file.isExecutable() && prefs.get("browser.download.manager.alertOnEXEOpen", true))
this.list.modules.commandline.input("This will launch an executable download. Continue? (yes/[no]) ",
this.list.modules.commandline.input("This will launch an executable download. Continue? (yes/[no]/always) ",
function (resp) {
if (resp && resp.match(/^y(es)?$/i))
if (/^a(lways)$/i.test(resp)) {
prefs.set("browser.download.manager.alertOnEXEOpen", false);
resp = "yes";
}
if (/^y(es)?$/i.test(resp))
action.call(self);
});
else

View File

@@ -601,12 +601,12 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
context.completions = this.values;
},
values: [
["all", "Everything"],
["session", "The current session"],
["10m", "Last ten minutes"],
["1h", "Past hour"],
["1d", "Past day"],
["1w", "Past week"]
["all", "Everything"],
["session", "The current session"],
["10m", "Last ten minutes"],
["1h", "Past hour"],
["1d", "Past day"],
["1w", "Past week"]
],
validator: function (value) /^(a(ll)?|s(ession)|\d+[mhdw])$/.test(value)
});