*** editTable~ Sat Jan 3 21:10:26 2004 --- editTable Mon Jan 5 22:26:04 2004 *************** *** 143,148 **** --- 143,157 ---- $tmpl = &TWiki::getRenderedVersion( $tmpl ); $tmpl =~ s/%TABLEFIELDS%/$formText/go; #Moved after getRenderedVersion so that TWiki Syntax does not expand + if ($query->{'jscalendar'}) { + # add header data for jscalendar if used. Use header in jscalendar.tmpl + my $jstmpl = &TWiki::Store::readTemplate( "jscalendar" ); + my $jscalendaroptions = &TWiki::Store::readTemplate( "jscalendaroptions" ); + $jstmpl = &TWiki::handleCommonTags( $jstmpl, $topic ); + $tmpl =~ s/%JSCALENDAROPTIONS%/$jscalendaroptions/go; + $tmpl =~ s/<\/head>/$jstmpl<\/head>/o; + } + TWiki::writeHeader( $query ); print $tmpl; }