From cc06e6bceb5b5f472c86091dedaa374e7bd72067 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 29 Dec 2011 16:08:34 -0500 Subject: Add dynamic content before running its scripts, to get IDs in scope; fix generation of Postgres queries with blobs --- lib/js/urweb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/js') 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); } }; -- cgit v1.2.3