Skip to content

Commit

Permalink
Update color when mark all button is used
Browse files Browse the repository at this point in the history
  • Loading branch information
aanunez committed Oct 9, 2024
1 parent 4cc7fd2 commit aba18ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ $(document).ready(() => {
}

/*
Event listener for the Mark all Button. Marks all variables in calendar as value
Event listener for the Mark all Button. Marks all variables in calendar for given month as value
*/
const calMarkAllAsValue = (calendar, variable, value) => {

Expand All @@ -138,6 +138,7 @@ $(document).ready(() => {
if (date.split('-')[1] != month || data['_complete'] == 1)
return
json[calendar][date][variable] = value
updateDayComplete(calendar, true, date)
})

$(`textarea[name=${calendar}]`).val(JSON.stringify(json[calendar]))
Expand Down

0 comments on commit aba18ba

Please sign in to comment.