Merge branch 'saas-dev' into saas-showbuilder
This commit is contained in:
commit
5e58403c7f
5 changed files with 52 additions and 70 deletions
|
@ -48,7 +48,6 @@ function toggleAddShowButton(){
|
|||
}
|
||||
|
||||
function setupStartTimeWidgets() {
|
||||
|
||||
if ($('input[name=add_show_start_now]:checked').val() == 'now') {
|
||||
$('#add_show_start_date').prop('disabled', 'true');
|
||||
$('#add_show_start_time').prop('disabled', 'true');
|
||||
|
@ -65,9 +64,17 @@ function setupStartTimeWidgets() {
|
|||
$('#add_show_end_date_no_repeat').val(nowShowEnd.format('YYYY-MM-DD'));
|
||||
$('#add_show_end_time').val(nowShowEnd.format('HH:mm'));
|
||||
|
||||
//Disabled linked show option since user won't be able to schedule
|
||||
//content
|
||||
$('#add_show_linked').prop('disabled', 'true');
|
||||
|
||||
} else {
|
||||
$('#add_show_start_date').removeProp('disabled');
|
||||
$('#add_show_start_time').removeProp('disabled');
|
||||
//Do not enable start date and time option when a show has already started
|
||||
if (!$('#add_show_start_now-now').prop('disabled')) {
|
||||
$('#add_show_start_date').removeProp('disabled');
|
||||
$('#add_show_start_time').removeProp('disabled');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -241,6 +248,10 @@ function setAddShowEvents(form) {
|
|||
|
||||
form.find('input:radio[name=add_show_start_now]').click(function() {
|
||||
setupStartTimeWidgets();
|
||||
|
||||
if ($(this).val() == "future") {
|
||||
$('#add_show_linked').removeProp('disabled');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue