1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 10:47:59 +01:00

Fix #208 (Hint on text field doesn't work for some fields)

This commit is contained in:
Doug Kearns
2009-05-15 01:13:44 +10:00
parent 56f1fe6c50
commit b665e766e7

View File

@@ -1190,18 +1190,16 @@ function Buffer() //{{{
offsetX = Number(coords[0]) + 1;
offsetY = Number(coords[1]) + 1;
}
else if (localName == "input" && elem.getAttribute('type').toLowerCase() == "file")
else if (localName == "input" && elem.type.toLowerCase() == "file")
{
commandline.input("Upload file: ", function (path)
{
let file = io.getFile(path);
commandline.input("Upload file: ", function (path) {
let file = io.getFile(path);
if (!file.exists())
return liberator.beep();
if (!file.exists())
return liberator.beep();
elem.value = file.path;
}
, {completer: completion.file, default: elem.value});
elem.value = file.path;
}, { completer: completion.file, default: elem.value });
return;
}