(schedule) display warning icon and tooltip on overbooked show

This commit is contained in:
Lucas Bickel 2019-08-17 17:25:25 +02:00
parent e232469551
commit aa9b8aedae
3 changed files with 53 additions and 15 deletions

View file

@ -22,21 +22,6 @@ function closeDialogCalendar(event, ui) {
$("#schedule_calendar").fullCalendar( 'refetchEvents' );
}
function checkShowLength(json) {
var percent = json.percentFilled;
if (percent > 100){
$("#show_time_warning")
.text($.i18n._("Shows longer than their scheduled time will be cut off by a following show."))
.show();
}
else {
$("#show_time_warning")
.empty()
.hide();
}
}
function confirmCancelShow(show_instance_id){
if (confirm($.i18n._('Cancel Current Show?'))) {
var url = baseUrl+"Schedule/cancel-current-show";