diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-05-21 10:18:20 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-05-21 10:18:20 -0400 |
commit | 7b95b3208e776e2fa66142df858464cfbc5137be (patch) | |
tree | 9b952c226cd5d3a119b00f2643f6bf2e969ef417 /src | |
parent | eaecb983d749637eaa651f641caf2136e889dfb0 (diff) |
Split JavaScript inp() into separate functions
Diffstat (limited to 'src')
-rw-r--r-- | src/monoize.sml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/monoize.sml b/src/monoize.sml index 6c41de21..2ed7c3f8 100644 --- a/src/monoize.sml +++ b/src/monoize.sml @@ -2565,9 +2565,9 @@ fun monoExp (env, st, fm) (all as (e, loc)) = loc)), loc), fm) end | SOME (_, src, _) => - (strcat [str "<span><script type=\"text/javascript\">inp(\"input\",", + (strcat [str "<span><script type=\"text/javascript\">inp(", (L'.EJavaScript (L'.Script, src), loc), - str ",\"\")</script></span>"], + str ")</script></span>"], fm)) | _ => (Print.prefaces "Targs" (map (fn t => ("T", CorePrint.p_con env t)) targs); raise Fail "No name passed to textbox tag")) @@ -2637,9 +2637,9 @@ fun monoExp (env, st, fm) (all as (e, loc)) = end | SOME (_, src, _) => let - val sc = strcat [str "inp(\"input\",", + val sc = strcat [str "inp(", (L'.EJavaScript (L'.Script, src), loc), - str ",\"\")"] + str ")"] val sc = setAttrs sc in (strcat [str "<span><script type=\"text/javascript\">", @@ -2662,7 +2662,7 @@ fun monoExp (env, st, fm) (all as (e, loc)) = let val (xml, fm) = monoExp (env, st, fm) xml - val sc = strcat [str "inp(\"select\",", + val sc = strcat [str "sel(", (L'.EJavaScript (L'.Script, src), loc), str ",", (L'.EJavaScript (L'.Script, xml), loc), |