Skip to content

Commit 704c0b9

Browse files
fix formatting
1 parent ca698f3 commit 704c0b9

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -235,27 +235,27 @@ $.extend(Timepicker.prototype, {
235235
_parseTime: function(timeString, withDate) {
236236
if (!this.inst)
237237
this.inst = $.datepicker._getInst(this.$input[0]);
238-
239-
if (withDate || !this._defaults.timeOnly)
240-
{
238+
239+
if (withDate || !this._defaults.timeOnly)
240+
{
241241
var dp_dateFormat = $.datepicker._get(this.inst, 'dateFormat');
242-
try {
243-
var parseRes = parseDateTimeInternal(dp_dateFormat, this._defaults.timeFormat, timeString, $.datepicker._getFormatConfig(this.inst), this._defaults);
244-
if (!parseRes.timeObj) return false;
245-
$.extend(this, parseRes.timeObj);
246-
} catch (err)
247-
{
248-
return false;
249-
}
250-
return true;
251-
}
252-
else
253-
{
254-
var timeObj = $.datepicker.parseTime(this._defaults.timeFormat, timeString, this._defaults);
255-
if(!timeObj) return false;
256-
$.extend(this, timeObj);
257-
return true;
258-
}
242+
try {
243+
var parseRes = parseDateTimeInternal(dp_dateFormat, this._defaults.timeFormat, timeString, $.datepicker._getFormatConfig(this.inst), this._defaults);
244+
if (!parseRes.timeObj) return false;
245+
$.extend(this, parseRes.timeObj);
246+
} catch (err)
247+
{
248+
return false;
249+
}
250+
return true;
251+
}
252+
else
253+
{
254+
var timeObj = $.datepicker.parseTime(this._defaults.timeFormat, timeString, this._defaults);
255+
if(!timeObj) return false;
256+
$.extend(this, timeObj);
257+
return true;
258+
}
259259
},
260260

261261
//########################################################################

0 commit comments

Comments
 (0)