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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user