Corrected error calling datepicker dateFormat

master
Trent 2010-09-15 22:25:33 -04:00
parent db4a4a8b10
commit c4402c7f04
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@
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
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();