Mercurial > urweb
diff lib/js/urweb.js @ 1650:1bfd793e7eb8
Add dynamic content before running its scripts, to get IDs in scope; fix generation of Postgres queries with blobs
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 29 Dec 2011 16:08:34 -0500 |
parents | b0720700c36e |
children | 1c8456f0cf8c |
line wrap: on
line diff
--- a/lib/js/urweb.js Thu Dec 29 14:12:03 2011 -0500 +++ b/lib/js/urweb.js Thu Dec 29 16:08:34 2011 -0500 @@ -812,9 +812,9 @@ } else { firstChild = document.createElement("span"); firstChild.innerHTML = html; - runScripts(firstChild); if (x.parentNode) x.parentNode.insertBefore(firstChild, x); + runScripts(firstChild); } };