fixed date format bug

This commit is contained in:
Trent 2010-09-26 21:37:42 -04:00
parent 675043dfd0
commit 0851f323a9

View file

@ -87,7 +87,8 @@
if (!this.defaults.timeOnly) { if (!this.defaults.timeOnly) {
//the time should come after x number of characters and a space. x = at least the length of text specified by the date format //the time should come after x number of characters and a space. x = at least the length of text specified by the date format
regstr = '.{' + this.defaults.dateFormat.length + ',}\\s+' + regstr; var dp_dateFormat = $.datepicker._get(dp_inst, 'dateFormat');
regstr = '.{' + dp_dateFormat.length + ',}\\s+' + regstr;
} }
var order = this.getFormatPositions(); var order = this.getFormatPositions();