1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-04 11:05:46 +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; offsetX = Number(coords[0]) + 1;
offsetY = Number(coords[1]) + 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) commandline.input("Upload file: ", function (path) {
{ let file = io.getFile(path);
let file = io.getFile(path);
if (!file.exists()) if (!file.exists())
return liberator.beep(); return liberator.beep();
elem.value = file.path; elem.value = file.path;
} }, { completer: completion.file, default: elem.value });
, {completer: completion.file, default: elem.value});
return; return;
} }