diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-09-08 10:55:49 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-09-08 10:55:49 -0400 |
commit | 33dbb6c0000a5d82267f984191e7390be86b7dfd (patch) | |
tree | 7d2a84baa2e21562b0754815824f223d61a6621a /src | |
parent | d07c91bf275874a5f6f13af5f338def78eea7ae0 (diff) |
dragList demo working, save for Gecko load delay and highlighting
Diffstat (limited to 'src')
-rw-r--r-- | src/c/urweb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index 4160fa81..8566609b 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -2556,6 +2556,7 @@ void uw_commit(uw_context ctx) { char *start = strstr(ctx->page.start, "<sc>"); if (start) { buf_check(&ctx->page, buf_used(&ctx->page) - 4 + len); + start = strstr(ctx->page.start, "<sc>"); memmove(start + len, start + 4, buf_used(&ctx->page) - (start - ctx->page.start) - 3); ctx->page.front += len - 4; memcpy(start, ctx->script_header, len); @@ -2566,13 +2567,13 @@ void uw_commit(uw_context ctx) { char *start = strstr(ctx->page.start, "<sc>"); if (start) { buf_check(&ctx->page, buf_used(&ctx->page) - 4 + lenP); + start = strstr(ctx->page.start, "<sc>"); memmove(start + lenP, start + 4, buf_used(&ctx->page) - (start - ctx->page.start) - 3); ctx->page.front += lenP - 4; memcpy(start, ctx->script_header, lenH); memcpy(start + lenH, "<script type=\"text/javascript\">", 31); memcpy(start + lenH + 31, ctx->script.start, len); memcpy(start + lenH + 31 + len, "</script>", 9); - printf("start=%s\n", start); } } } |