Skip to content

Commit

Permalink
Fix player dropdown being empty on page load if no protocol slection …
Browse files Browse the repository at this point in the history
…is in the local storage
  • Loading branch information
MixMasterMitch committed Oct 17, 2019
1 parent 1d925e2 commit bd0b3bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ function updateFieldsCorrespondingToStreamingProtocol() {
});
$('#player').trigger('change');
}
updateFieldsCorrespondingToStreamingProtocol();

function updateFieldsCorrespondingToPlaybackMode() {
var isLive = $('#playbackMode').val() === 'LIVE';
$('#startTimestamp').prop('disabled', isLive);
$('#endTimestamp').prop('disabled', isLive);
}
updateFieldsCorrespondingToPlaybackMode();

$('.loader').hide();
$('.main').show();
Expand Down

0 comments on commit bd0b3bf

Please sign in to comment.