CC-3489: Live Stream: When Custom Auth check box is checked, Custom Username and Custom Password field must be required

- done
This commit is contained in:
James 2012-03-26 15:07:27 -04:00
parent 9073df17a1
commit e76f4baf18
4 changed files with 74 additions and 32 deletions

View file

@ -401,6 +401,21 @@ function setAddShowEvents() {
// calculate duration
calculateDuration(endDateTime, startDateTime);
});
if($('#cb_custom_auth').attr('checked')){
$('#custom_auth_div').show()
}else{
$('#custom_auth_div').hide()
}
$('#cb_custom_auth').change(function(){
if($(this).attr('checked')){
$('#custom_auth_div').show()
}else{
$('#custom_auth_div').hide()
}
})
function calculateDuration(endDateTime, startDateTime){
var duration;
@ -446,6 +461,9 @@ function showErrorSections() {
$("#schedule-record-rebroadcast").show();
$("#add_show_rebroadcast_absolute").show();
}
if($("#live-stream-override .errors").length > 0) {
$("#live-stream-override").show();
}
if($("#add_show_rebroadcast_relative .errors").length > 0) {
$("#schedule-record-rebroadcast").show();
$("#add_show_rebroadcast_relative").show();