Mercurial > urweb
comparison lib/js/urweb.js @ 606:5145181b02fa
Use normal fields of ctextboxes
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 27 Jan 2009 09:53:51 -0500 |
parents | 20c083327364 |
children | 56aaa1941dad |
comparison
equal
deleted
inserted
replaced
605:1a9171e31fd1 | 606:5145181b02fa |
---|---|
85 var x = document.createElement(t); | 85 var x = document.createElement(t); |
86 x.value = s.v; | 86 x.value = s.v; |
87 addNode(x); | 87 addNode(x); |
88 s.h = cons(function() { x.value = s.v }, s.h); | 88 s.h = cons(function() { x.value = s.v }, s.h); |
89 x.onkeyup = function() { sv(s, x.value) }; | 89 x.onkeyup = function() { sv(s, x.value) }; |
90 return x; | |
90 } | 91 } |
91 | 92 |
92 function eh(x) { | 93 function eh(x) { |
93 return x.split("&").join("&").split("<").join("<").split(">").join(">"); | 94 return x.split("&").join("&").split("<").join("<").split(">").join(">"); |
94 } | 95 } |