|
311 | 311 | } |
312 | 312 | $.extend(this, parseRes.timeObj); |
313 | 313 | } catch (err) { |
314 | | - $.datepicker.log("Error parsing the date/time string: " + err + |
| 314 | + $.timepicker.log("Error parsing the date/time string: " + err + |
315 | 315 | "\ndate/time string = " + timeString + |
316 | 316 | "\ntimeFormat = " + this._defaults.timeFormat + |
317 | 317 | "\ndateFormat = " + dp_dateFormat); |
|
826 | 826 | try { |
827 | 827 | $.datepicker._updateDatepicker(inst); |
828 | 828 | } catch (err) { |
829 | | - $.datepicker.log(err); |
| 829 | + $.timepicker.log(err); |
830 | 830 | } |
831 | 831 | } |
832 | 832 | } |
|
1163 | 1163 | return strictParse(f,s,o); |
1164 | 1164 | } |
1165 | 1165 | catch(err2){ |
1166 | | - $.datepicker.log("Unable to parse \ntimeString: "+ s +"\ntimeFormat: "+ f); |
| 1166 | + $.timepicker.log("Unable to parse \ntimeString: "+ s +"\ntimeFormat: "+ f); |
1167 | 1167 | } |
1168 | 1168 | } |
1169 | 1169 | return false; |
|
1373 | 1373 | try { |
1374 | 1374 | $.datepicker._updateDatepicker(inst); |
1375 | 1375 | } catch (err) { |
1376 | | - $.datepicker.log(err); |
| 1376 | + $.timepicker.log(err); |
1377 | 1377 | } |
1378 | 1378 | } |
1379 | 1379 | } |
|
1539 | 1539 | // the "extra" characters. We rely on that instead of |
1540 | 1540 | // attempting to perfectly reproduce the parsing algorithm. |
1541 | 1541 | date = this._base_parseDate(format, value.substring(0,value.length-(err.length-err.indexOf(':')-2)), settings); |
1542 | | - $.datepicker.log("Error parsing the date string: " + err + "\ndate string = " + value + "\ndate format = " + format); |
| 1542 | + $.timepicker.log("Error parsing the date string: " + err + "\ndate string = " + value + "\ndate format = " + format); |
1543 | 1543 | } |
1544 | 1544 | return date; |
1545 | 1545 | }; |
|
1714 | 1714 | } |
1715 | 1715 |
|
1716 | 1716 | } catch (err) { |
1717 | | - $.datepicker.log('Could not split the date from the time. Please check the following datetimepicker options' + |
| 1717 | + $.timepicker.log('Could not split the date from the time. Please check the following datetimepicker options' + |
1718 | 1718 | "\nthrown error: " + err + |
1719 | 1719 | "\ndateTimeString" + dateTimeString + |
1720 | 1720 | "\ndateFormat = " + dateFormat + |
|
1901 | 1901 | return $([startTime.get(0), endTime.get(0)]); |
1902 | 1902 | }; |
1903 | 1903 |
|
| 1904 | + /** |
| 1905 | + * Log error or data to the console during error or debugging |
| 1906 | + * @param Object err pass any type object to log to the console during error or debugging |
| 1907 | + * @return void |
| 1908 | + */ |
| 1909 | + $.timepicker.log = function(err){ |
| 1910 | + if(window.console) |
| 1911 | + console.log(err); |
| 1912 | + }; |
| 1913 | + |
1904 | 1914 | /* |
1905 | 1915 | * Keep up with the version |
1906 | 1916 | */ |
|
0 commit comments