NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item11383 for general documentation changes for release 1.1.5. Use
Item9693 for docu changes for release 2.0.
Item2214: JSCalendarContribInline conflicts with EditTablePlugin date format
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
New |
Extension |
EditTablePlugin |
|
If I have both an Editable table with date format columns AND an HTML form that uses a datepicker field created by
JSCalendarContribInline, the inclusion of
JSCalendarContribInline in the page causes the EDITTABLE date pickers to fail.
Failure mode:
- selecting a date in a table field does nothing
- if you click < or > to move to a previous or later month, the 1st of that month is chosen
- you can then edit the date pasted into the field to change the date number
Example Code
%EDITTABLE{ format="|row, -1|text, 20|date, 7|date, 7|date, 7|select,1,New,Open,Complete,Pending,On Hold|textarea, 3x50|textarea, 3x50|" }%
| *Item No* | *Owner* | *Date Assigned* | *Orig. Date* | *Actual Date* | *Status* | *Action Item / Desired outcome* | *Results / Next Step* |
<!--
* Set YEARMO = %SERVERTIME{"$year$mo"}%
-->
<!-- JSCALENDAR -->
%INCLUDE{"%SYSTEMWEB%/JSCalendarContribInline"}%
<form action="%SCRIPTURLPATH%/save%SCRIPTSUFFIX%/%WEB%/">
<input type="hidden" value="Notes%YEARMO%rXXXXXXXXXX" name="topic" />
<input type="hidden" value="%TOPIC%" name="topicparent" />
<div class="twikiForm twikiEditForm">
<table class="twikiFormTable">
<tr><th bgcolor="#99CCCC" align="right"><span title="Date">Date</span></th>
<td align="left">
<input type="text" name="MeetingDate" size="20" id="datecell" class="twikiEditFormTextField" />
<input type="image" src="%PUBURL%/%TWIKIWEB%/JSCalendarContrib/img.gif" alt="Calendar" onclick="javascript: return showCalendar('datecell','%e %B %Y')" />
<br>
</td></tr>
<tr><td> </td>
<td align="center">
<input type="submit" value="Create Page" />
</td></tr>
</table>
</div>
</form>
Try It
- Add a row to the table.
- try to pick a date for any of the date columns
- Pick a date in the second form
It appears that
EditTablePlugin uses
JSCalendarContrib to handle the date picker.
EditTable? imports
* /pub/TWiki/JSCalendarContrib/calendar.js
* /pub/TWiki/JSCalendarContrib/lang/calendar-en.js
* /pub/TWiki/JSCalendarContrib/foswiki.js
JSCalendarContribInline? imports these as well as
* /pub/TWiki/JSCalendarContrib/calendar-setup.js
--
VickiBrown - 06 Oct 2009