Skip to content

Commit

Permalink
fix(calendar): enableddates example was not working (#491)
Browse files Browse the repository at this point in the history
The enabledDates Example was not working because the running Js code had different values than the example on the page.
  • Loading branch information
lubber-de authored Mar 12, 2024
1 parent 90b8278 commit 7544c42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/files/javascript/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ semantic.calendar.ready = function() {

$('#disableddates_calendar')
.calendar({
initialDate: new Date('2018-12-1'),
initialDate: new Date('2018-12-01'),
disabledDates: [{
date: new Date('2018-12-22'),
message: 'xmas gift shopping'
Expand Down Expand Up @@ -213,11 +213,11 @@ semantic.calendar.ready = function() {
$('#enableddates_calendar')
.calendar({
type: 'date',
initialDate: new Date('2019-3-1'),
initialDate: new Date('2019-03-01'),
enabledDates: [
new Date('2018-3-5'),
new Date('2018-3-10'),
new Date('2018-3-20')
new Date('2019-03-05'),
new Date('2019-03-10'),
new Date('2019-03-20')
]
})
;
Expand Down

0 comments on commit 7544c42

Please sign in to comment.