diff datebox.ur @ 31:b5432d74841a

Update for key/mouse handler change
author Adam Chlipala <adam@chlipala.net>
date Sat, 21 Jul 2012 10:15:14 -0400
parents 5905b56e0cd9
children
line wrap: on
line diff
--- a/datebox.ur	Sat May 12 10:07:45 2012 -0400
+++ b/datebox.ur	Sat Jul 21 10:15:14 2012 -0400
@@ -10,8 +10,8 @@
 val format : TogglePanel.formatCtl body' = fn [[Dyn] ~ body'] =>
     TogglePanel.defaultFormat
         -- #OpenCtl -- #CloseCtl
-        ++ {OpenCtl = fn behaviour => <xml><button value="Choose" onclick={behaviour}/></xml>,
-            CloseCtl = fn behaviour => <xml><button value="Hide" onclick={behaviour}/></xml>}
+        ++ {OpenCtl = fn behaviour => <xml><button value="Choose" onclick={fn _ => behaviour}/></xml>,
+            CloseCtl = fn behaviour => <xml><button value="Hide" onclick={fn _ => behaviour}/></xml>}
 
 fun create tm =
     cal <- Calendar.create tm;