Skip to content

Commit b96d7dd

Browse files
author
Dmitri Koulikoff (acer)
committed
Only "Extra characters" error should be retried
1 parent 0a68b5c commit b96d7dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,7 @@ $.datepicker.parseDate = function(format, value, settings) {
12101210
// Hack! The error message ends with a colon, a space, and
12111211
// the "extra" characters. We rely on that instead of
12121212
// attempting to perfectly reproduce the parsing algorithm.
1213+
if (err.indexOf(':') < 0) throw err
12131214
date = this._base_parseDate(format, value.substring(0,value.length-(err.length-err.indexOf(':')-2)), settings);
12141215
}
12151216
return date;

0 commit comments

Comments
 (0)