summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-21 10:18:20 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-21 10:18:20 -0400
commit7b95b3208e776e2fa66142df858464cfbc5137be (patch)
tree9b952c226cd5d3a119b00f2643f6bf2e969ef417 /src
parenteaecb983d749637eaa651f641caf2136e889dfb0 (diff)
Split JavaScript inp() into separate functions
Diffstat (limited to 'src')
-rw-r--r--src/monoize.sml10
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),