|
675 | 675 | var hourMax = parseInt((this._defaults.hourMax - ((this._defaults.hourMax - this._defaults.hourMin) % this._defaults.stepHour)), 10),
|
676 | 676 | minMax = parseInt((this._defaults.minuteMax - ((this._defaults.minuteMax - this._defaults.minuteMin) % this._defaults.stepMinute)), 10),
|
677 | 677 | secMax = parseInt((this._defaults.secondMax - ((this._defaults.secondMax - this._defaults.secondMin) % this._defaults.stepSecond)), 10),
|
678 |
| - millisecMax = parseInt((this._defaults.millisecMax - ((this._defaults.millisecMax - this._defaults.millisecMin) % this._defaults.stepMillisec)), 10); |
| 678 | + millisecMax = parseInt((this._defaults.millisecMax - ((this._defaults.millisecMax - this._defaults.millisecMin) % this._defaults.stepMillisec)), 10), |
679 | 679 | microsecMax = parseInt((this._defaults.microsecMax - ((this._defaults.microsecMax - this._defaults.microsecMin) % this._defaults.stepMicrosec)), 10);
|
680 | 680 |
|
681 | 681 | if (this.hour_slider) {
|
|
1917 | 1917 |
|
1918 | 1918 | /**
|
1919 | 1919 | * Get the timezone offset as string from a date object (eg '+0530' for UTC+5.5)
|
1920 |
| - * @param number if not a number this value is returned |
1921 |
| - * @param boolean if true formats in accordance to iso8601 "+12:45" |
1922 |
| - * @return string |
| 1920 | + * @param {number} tzMinutes if not a number this value is returned |
| 1921 | + * @param {boolean} iso8601 if true formats in accordance to iso8601 "+12:45" |
| 1922 | + * @return {string} |
1923 | 1923 | */
|
1924 | 1924 | $.timepicker.timezoneOffsetString = function(tzMinutes, iso8601) {
|
1925 | 1925 | if(isNaN(tzMinutes) || tzMinutes > 840){
|
|
1940 | 1940 |
|
1941 | 1941 | /**
|
1942 | 1942 | * Get the number in minutes that represents a timezone string
|
1943 |
| - * @param string formated like "+0500", "-1245" |
1944 |
| - * @return number |
| 1943 | + * @param {string} tzString formatted like "+0500", "-1245" |
| 1944 | + * @return {number} |
1945 | 1945 | */
|
1946 | 1946 | $.timepicker.timezoneOffsetNumber = function(tzString) {
|
1947 | 1947 | tzString = tzString.toString().replace(':',''); // excuse any iso8601, end up with "+1245"
|
|
1961 | 1961 |
|
1962 | 1962 | /**
|
1963 | 1963 | * No way to set timezone in js Date, so we must adjust the minutes to compensate. (think setDate, getDate)
|
1964 |
| - * @param date |
1965 |
| - * @param string formated like "+0500", "-1245" |
| 1964 | + * @param {date} date |
| 1965 | + * @param {string} toTimezone formatted like "+0500", "-1245" |
1966 | 1966 | * @return date
|
1967 | 1967 | */
|
1968 | 1968 | $.timepicker.timezoneAdjust = function(date, toTimezone) {
|
|
1977 | 1977 | * Calls `timepicker()` on the `startTime` and `endTime` elements, and configures them to
|
1978 | 1978 | * enforce date range limits.
|
1979 | 1979 | * n.b. The input value must be correctly formatted (reformatting is not supported)
|
1980 |
| - * @param Element startTime |
1981 |
| - * @param Element endTime |
1982 |
| - * @param obj options Options for the timepicker() call |
1983 |
| - * @return jQuery |
| 1980 | + * @param {Element} startTime |
| 1981 | + * @param {Element} endTime |
| 1982 | + * @param {object} options Options for the timepicker() call |
| 1983 | + * @return {jQuery} |
1984 | 1984 | */
|
1985 | 1985 | $.timepicker.timeRange = function(startTime, endTime, options) {
|
1986 | 1986 | return $.timepicker.handleRange('timepicker', startTime, endTime, options);
|
|
1989 | 1989 | /**
|
1990 | 1990 | * Calls `datetimepicker` on the `startTime` and `endTime` elements, and configures them to
|
1991 | 1991 | * enforce date range limits.
|
1992 |
| - * @param Element startTime |
1993 |
| - * @param Element endTime |
1994 |
| - * @param obj options Options for the `timepicker()` call. Also supports `reformat`, |
| 1992 | + * @param {Element} startTime |
| 1993 | + * @param {Element} endTime |
| 1994 | + * @param {object} options Options for the `timepicker()` call. Also supports `reformat`, |
1995 | 1995 | * a boolean value that can be used to reformat the input values to the `dateFormat`.
|
1996 | 1996 | * @param string method Can be used to specify the type of picker to be added
|
1997 | 1997 | * @return jQuery
|
|
2003 | 2003 | /**
|
2004 | 2004 | * Calls `method` on the `startTime` and `endTime` elements, and configures them to
|
2005 | 2005 | * enforce date range limits.
|
2006 |
| - * @param Element startTime |
2007 |
| - * @param Element endTime |
2008 |
| - * @param obj options Options for the `timepicker()` call. Also supports `reformat`, |
| 2006 | + * @param {Element} startTime |
| 2007 | + * @param {Element} endTime |
| 2008 | + * @param {object} options Options for the `timepicker()` call. Also supports `reformat`, |
2009 | 2009 | * a boolean value that can be used to reformat the input values to the `dateFormat`.
|
2010 | 2010 | * @return jQuery
|
2011 | 2011 | */
|
|
2016 | 2016 | /**
|
2017 | 2017 | * Calls `method` on the `startTime` and `endTime` elements, and configures them to
|
2018 | 2018 | * enforce date range limits.
|
2019 |
| - * @param string method Can be used to specify the type of picker to be added |
2020 |
| - * @param Element startTime |
2021 |
| - * @param Element endTime |
2022 |
| - * @param obj options Options for the `timepicker()` call. Also supports `reformat`, |
| 2019 | + * @param {string} method Can be used to specify the type of picker to be added |
| 2020 | + * @param {Element} startTime |
| 2021 | + * @param {Element} endTime |
| 2022 | + * @param {object} options Options for the `timepicker()` call. Also supports `reformat`, |
2023 | 2023 | * a boolean value that can be used to reformat the input values to the `dateFormat`.
|
2024 | 2024 | * @return jQuery
|
2025 | 2025 | */
|
|
2098 | 2098 |
|
2099 | 2099 | /**
|
2100 | 2100 | * Log error or data to the console during error or debugging
|
2101 |
| - * @param Object err pass any type object to log to the console during error or debugging |
2102 |
| - * @return void |
| 2101 | + * @param {Object} err pass any type object to log to the console during error or debugging |
| 2102 | + * @return {void} |
2103 | 2103 | */
|
2104 | 2104 | $.timepicker.log = function(err){
|
2105 | 2105 | if(window.console){
|
|
0 commit comments