summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-12-29 16:08:34 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-12-29 16:08:34 -0500
commitcc06e6bceb5b5f472c86091dedaa374e7bd72067 (patch)
treea7c6ec7ebc81baeeb6594b39d1c370c9aa9c582d /lib
parent8d6870717691d2ba46e518c8d1687236019368d1 (diff)
Add dynamic content before running its scripts, to get IDs in scope; fix generation of Postgres queries with blobs
Diffstat (limited to 'lib')
-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 ba73e744..8b6e2a75 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -812,9 +812,9 @@ function dyn(pnode, s) {
} else {
firstChild = document.createElement("span");
firstChild.innerHTML = html;
- runScripts(firstChild);
if (x.parentNode)
x.parentNode.insertBefore(firstChild, x);
+ runScripts(firstChild);
}
};