Index: openacs-4/packages/acs-templating/tcl/date-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/date-procs.tcl,v
diff -u -r1.49.2.3 -r1.49.2.4
--- openacs-4/packages/acs-templating/tcl/date-procs.tcl 28 May 2016 09:40:24 -0000 1.49.2.3
+++ openacs-4/packages/acs-templating/tcl/date-procs.tcl 2 Oct 2016 16:40:25 -0000 1.49.2.4
@@ -1290,11 +1290,19 @@
}
if {$element(mode) eq "edit"} {
- append output ""
- append output ""
+ set id $element(id)_input_field
+ append output [subst {
+
+
+ }]
+
+ template::add_event_listener \
+ -id $id-control \
+ -script [subst {
+ showCalendarWithDefault('$element(id)_input_field', '$javascriptdate', '[template::util::textdate_localized_format]');
+ }]
} else {
- append output $textdate
- append output ""
+ append output $textdate [subst {}]
}
return $output