diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-07-13 09:01:01 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-07-13 09:01:01 -0400 |
commit | e2b9068b56e352d5e3680fe5e4e0849169c5f419 (patch) | |
tree | b210f98844b573eae0a3d5b4c8e38ad99929ac7f | |
parent | fd642f8279123625ee29e29c1d8c59d9581074a8 (diff) |
Change propagation of source value to textarea
-rw-r--r-- | lib/js/urweb.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 40d080b8..509ff007 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -937,7 +937,7 @@ function chk(s) { function tbx(s) { var x = input(document.createElement("textarea"), s, - function(x) { return function(v) { if (x.innerHTML != v) x.innerHTML = v; }; }); + function(x) { return function(v) { if (x.value != v) x.value = v; }; }); x.innerHTML = s.data; x.onkeyup = x.oninput = x.onchange = x.onpropertychange = function() { sv(s, x.value) }; |