Skip to content

Commit 929fe78

Browse files
committed
Changed the number of tries from 7 to 31
1 parent d4e5daa commit 929fe78

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/js/bootstrap-datetimepicker.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,8 +1661,8 @@
16611661
var tries = 0;
16621662
while (!isValid(date, 'd')) {
16631663
date.add(1, 'd');
1664-
if (tries === 7) {
1665-
throw 'Tried 7 times to find a valid date';
1664+
if (tries === 31) {
1665+
throw 'Tried 31 times to find a valid date';
16661666
}
16671667
tries++;
16681668
}
@@ -2293,8 +2293,8 @@
22932293
};
22942294
/**
22952295
* Returns the component's model current viewDate, a moment object or null if not set. Passing a null value unsets the components model current moment. Parsing of the newDate parameter is made using moment library with the options.format and options.useStrict components configuration.
2296-
* @param {Takes string, viewDate, moment, null parameter.} newDate
2297-
* @returns {viewDate.clone()}
2296+
* @param {Takes string, viewDate, moment, null parameter.} newDate
2297+
* @returns {viewDate.clone()}
22982298
*/
22992299

23002300
picker.viewDate = function (newDate) {
@@ -2377,15 +2377,15 @@
23772377
/**
23782378
* See (http://jquery.com/).
23792379
* @name jQuery
2380-
* @class
2380+
* @class
23812381
* See the jQuery Library (http://jquery.com/) for full details. This just
23822382
* documents the function and classes that are added to jQuery by this plug-in.
23832383
*/
23842384

23852385
/**
23862386
* See (http://jquery.com/)
23872387
* @name fn
2388-
* @class
2388+
* @class
23892389
* See the jQuery Library (http://jquery.com/) for full details. This just
23902390
* documents the function and classes that are added to jQuery by this plug-in.
23912391
* @memberOf jQuery

0 commit comments

Comments
 (0)