Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Making parseTime "safe" if an undefined timeVal is passed

  • Loading branch information...
commit c8d4eb65282db63eaa3252af166903a3830eb807 1 parent 0c08b56
@KevinOrtman KevinOrtman authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  jquery.ui.timepicker.js
View
3  jquery.ui.timepicker.js
@@ -1140,6 +1140,9 @@
var retVal = new Object();
retVal.hours = -1;
retVal.minutes = -1;
+
+ if(!timeVal)
+ return '';
var timeSeparator = this._get(inst, 'timeSeparator'),
amPmText = this._get(inst, 'amPmText'),
Please sign in to comment.
Something went wrong with that request. Please try again.