Multiple-Dates-Picker-for-jQuery-UI
Multiple-Dates-Picker-for-jQuery-UI copied to clipboard
invalid dates from input value causes uncaught exception: Unexpected literal at position 1
If the input text value is not a valid set of dates, for example just "0" is what I had, I get "uncaught exception: Unexpected literal at position 1" thrown when the multiDatesPicker tries to initialize. This causes javascript to completely bomb out... :(
I have kind of fixed it by simply adding a try/catch around the line
methods.addDates.call(this, value.split(this.multiDatesPicker.separator));