Changeset 7045
- Timestamp:
- 04/01/10 21:49:44 (23 months ago)
- Location:
- branches/Release01x00
- Files:
-
- 5 edited
-
EditTablePlugin/data/System/EditTablePlugin.txt (modified) (1 diff)
-
JSCalendarContrib/data/System/JSCalendarContrib.txt (modified) (2 diffs)
-
JSCalendarContrib/lib/Foswiki/Contrib/JSCalendarContrib.pm (modified) (2 diffs)
-
JSCalendarContrib/pub/System/JSCalendarContrib/foswiki.js (modified) (1 diff)
-
JSCalendarContrib/pub/System/JSCalendarContrib/foswiki_src.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/Release01x00/EditTablePlugin/data/System/EditTablePlugin.txt
r6268 r7045 41 41 The =date= field type allows one to choose a date with a popup calendar. Popup calendar works with all modern browsers. The date picker button is inactive if the browser cannot support the popup calendar or if javascript is disabled. 42 42 43 The optional DHTML date format specifiers are described in the [[System.JSCalendarContrib#FormatSpecifiers][JSCalendarContrib]] documentation. When time spec 44 ifiers are used, the calendar allows one to choose a date and a time. 43 45 44 46 ---++ Per Cell Settings -
branches/Release01x00/JSCalendarContrib/data/System/JSCalendarContrib.txt
r5987 r7045 22 22 ---++ Detailed Documentation 23 23 %$POD% 24 25 ---+++ Using the Calendar for picking dates only or picking times and dates 26 The calendar is able to display a time-picker, in addition to the default date-picker, depending on the optional date format passed. 27 28 * the calendar displays the built-in time picker when the passed format descriptions includes hours, minutes or am or pm specifiers (i.e.: =%H, %I, %k, %l, %M, %p, %P=), 29 30 * otherwise the calendar is displayed normally with only dates if anything else or no format description is passed. 24 31 25 32 ---+++ Using the Calendar in user forms … … 57 64 | Release: | %$RELEASE% | 58 65 | Change History: | | 66 | 01 Apr 2010 | Calendar displays the built-in Time-Picker if the optional format string contains time format specifiers (Foswiki:Main.RaulFRodriguez) | 59 67 | 09 Jan 2010 | Adding the Config.spec file with the 3 settings so that people do not have to manually create the file. | 60 68 | 20 Sep 2009 | Small documentation update in connection with release of Foswiki 1.0.7 | -
branches/Release01x00/JSCalendarContrib/lib/Foswiki/Contrib/JSCalendarContrib.pm
r5987 r7045 19 19 20 20 $VERSION = '$Rev$'; 21 $RELEASE = '0 9 Jan2010';21 $RELEASE = '01 Apr 2010'; 22 22 $SHORTDESCRIPTION = "[[http://dynarch.com/mishoo/calendar.epl][Mishoo JSCalendar]], packaged for use by plugins, skins and add-ons"; 23 23 … … 148 148 The first parameter to =showCalendar= is the id of the textfield, and the second parameter is the date format. Default format is '%e %B %Y'. 149 149 150 #FormatSpecifiers 150 151 All available date specifiers: 151 152 <verbatim> -
branches/Release01x00/JSCalendarContrib/pub/System/JSCalendarContrib/foswiki.js
r984 r7045 1 1 function showCalendar(id,format){var el=document.getElementById(id);if(_dynarch_popupCalendar!=null){_dynarch_popupCalendar.hide();}else{var cal=new Calendar(1,null,function(cal,date){cal.sel.value=date;if(cal.sel.onchange!=null) 2 2 cal.sel.onchange();if(cal.dateClicked) 3 cal.callCloseHandler();},function(cal){cal.hide();_dynarch_popupCalendar=null;}); cal.showsTime=false;cal.showsOtherMonths=true;_dynarch_popupCalendar=cal;cal.setRange(1900,2070);cal.create();}3 cal.callCloseHandler();},function(cal){cal.hide();_dynarch_popupCalendar=null;});if(format.search(/%H|%I|%k|%l|%M|%p|%P/)!=-1){cal.showsTime=true;}else{cal.showsTime=false;}cal.showsOtherMonths=true;_dynarch_popupCalendar=cal;cal.setRange(1900,2070);cal.create();} 4 4 _dynarch_popupCalendar.setDateFormat(format);_dynarch_popupCalendar.parseDate(el.value);_dynarch_popupCalendar.sel=el;_dynarch_popupCalendar.showAtElement(el,"Br");return false;} -
branches/Release01x00/JSCalendarContrib/pub/System/JSCalendarContrib/foswiki_src.js
r984 r7045 18 18 _dynarch_popupCalendar = null; 19 19 }); 20 cal.showsTime = false; 20 if (format.search(/%H|%I|%k|%l|%M|%p|%P/)!=-1) { 21 cal.showsTime=true; 22 } else { 23 cal.showsTime=false; 24 } 21 25 cal.showsOtherMonths = true; 22 26 _dynarch_popupCalendar = cal;
Note: See TracChangeset
for help on using the changeset viewer.
