summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xjquery-ui-timepicker-addon.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js
index b235931..71094b0 100755
--- a/jquery-ui-timepicker-addon.js
+++ b/jquery-ui-timepicker-addon.js
@@ -88,7 +88,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();