aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-11-30 10:02:13 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2012-11-30 10:02:13 -0500
commiteab77d1d8c4c6bdc3b7857713c8bc1e5947f58d0 (patch)
treef7d02034f487581c28961bcb0f0b5836e1fec361 /lib/js
parent89be6e97ad713323aaf23f866a7fe08303e7180f (diff)
add Placeholder attribute to <password>; change <textbox> code generation to set 'type' to 'text'
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/urweb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index 57a03fb2..cc65ab8f 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -1004,7 +1004,7 @@ function inp(s, name) {
return;
var x = input(document.createElement("input"), s,
- function(x) { return function(v) { if (x.value != v) x.value = v; }; }, null, name);
+ function(x) { return function(v) { if (x.value != v) x.value = v; }; }, "text", name);
x.value = s.data;
x.onkeyup = x.oninput = x.onchange = x.onpropertychange = function() { sv(s, x.value) };