Changeset 2084
- Timestamp:
- Oct 18, 2013, 12:12:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/reggie.js
r2036 r2084 225 225 226 226 @param shortDate Date in format 'MMdd' or in 'yyMMdd' 227 */ 228 function autoFillDate(shortDate) 229 { 227 @param allowSixDigitDates Boolean Flag indicating if 6-digit dates should be auto-filled (default = false). 228 */ 229 function autoFillDate(shortDate, allowSixDigitDates) 230 { 231 if (allowSixDigitDates == null) 232 { 233 allowSixDigitDates = false; 234 } 230 235 shortDate = shortDate.replace("-","") 231 236 var fullDateString = shortDate; … … 244 249 fullDateString = currentYear+shortDate; 245 250 } 246 else if ( shortDate.length == 6 && Dates.isDate(shortDate, 'yyMMdd'))251 else if (allowSixDigitDates && shortDate.length == 6 && Dates.isDate(shortDate, 'yyMMdd')) 247 252 { 248 253 var year = parseInt(shortDate.substring(0,2), 10);
Note: See TracChangeset
for help on using the changeset viewer.