Skip to content

Commit

Permalink
Bugfix: Synchronized Event save button not working (#2742)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadzpogi authored Sep 30, 2024
1 parent 1aff06f commit 807ad39
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ui/src/core/xibo-calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,15 @@ var processScheduleFormElements = function(el) {
$startTime.find('small.text-muted').html($startTime.closest('form').data().daypartMessage);
}

// if dayparting is set to always, disable start time and end time
if (meta.isAlways === 0) {
$startTime.find('input[name=fromDt]').prop('disabled', false);
$endTime.find('input[name=toDt]').prop('disabled', false);
} else {
$startTime.find('input[name=fromDt]').prop('disabled', true);
$endTime.find('input[name=toDt]').prop('disabled', true);
}

break;

case 'campaignId':
Expand Down

0 comments on commit 807ad39

Please sign in to comment.