diff --git a/airtime_mvc/public/js/airtime/schedule/add-show.js b/airtime_mvc/public/js/airtime/schedule/add-show.js index 5890b0ccf..679f3d11b 100644 --- a/airtime_mvc/public/js/airtime/schedule/add-show.js +++ b/airtime_mvc/public/js/airtime/schedule/add-show.js @@ -401,21 +401,20 @@ function setAddShowEvents() { // calculate duration calculateDuration(endDateTime, startDateTime); }); - - - if($('#cb_custom_auth').attr('checked')){ + + 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() - } - }) + + $('#cb_custom_auth').change(function(){ + if($(this).attr('checked')){ + $('#custom_auth_div').show() + }else{ + $('#custom_auth_div').hide() + } + }) function calculateDuration(endDateTime, startDateTime){ var duration;