You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When im try to add empty array i have error:
Uncaught Error: Empty array of dates received.
at Function.error (jquery-2.2.4.min.js:4)
at HTMLDivElement.addDates (jquery-ui.multidatespicker.js:321)
at HTMLDivElement.init (jquery-ui.multidatespicker.js:165)
at HTMLDivElement. (jquery-ui.multidatespicker.js:470)
at Function.each (jquery-2.2.4.min.js:4)
at n.fn.init.each (jquery-2.2.4.min.js:4)
at n.fn.init.$.fn.multiDatesPicker (jquery-ui.multidatespicker.js:427)
at Object.success (darbografikai.php:114)
at i (jquery-2.2.4.min.js:4)
at Object.fireWith [as resolveWith] (jquery-2.2.4.min.js:4)
I create an object with an empty dates array. and I need to show that the calendar is empty. is it possible to fill adddates with an empty array?
$.each(response,function(i,j) { dates.push(j.date); });
// some times dates array can be empty
$('#datepicker').multiDatesPicker({
minDate: 0,
addDates: dates
})
The text was updated successfully, but these errors were encountered:
When im try to add empty array i have error:
Uncaught Error: Empty array of dates received.
at Function.error (jquery-2.2.4.min.js:4)
at HTMLDivElement.addDates (jquery-ui.multidatespicker.js:321)
at HTMLDivElement.init (jquery-ui.multidatespicker.js:165)
at HTMLDivElement. (jquery-ui.multidatespicker.js:470)
at Function.each (jquery-2.2.4.min.js:4)
at n.fn.init.each (jquery-2.2.4.min.js:4)
at n.fn.init.$.fn.multiDatesPicker (jquery-ui.multidatespicker.js:427)
at Object.success (darbografikai.php:114)
at i (jquery-2.2.4.min.js:4)
at Object.fireWith [as resolveWith] (jquery-2.2.4.min.js:4)
I create an object with an empty dates array. and I need to show that the calendar is empty. is it possible to fill adddates with an empty array?
$.each(response,function(i,j) { dates.push(j.date); });
// some times dates array can be empty
$('#datepicker').multiDatesPicker({
minDate: 0,
addDates: dates
})
The text was updated successfully, but these errors were encountered: