diff --git a/Gemfile.lock b/Gemfile.lock index 18cc54c6..c499e5cc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - jekyll-theme-conference (2.5.0) + jekyll-theme-conference (2.5.1) jekyll (~> 4.0) GEM diff --git a/_includes/js/conference-live.js b/_includes/js/conference-live.js index 227e7c59..e8583b5a 100644 --- a/_includes/js/conference-live.js +++ b/_includes/js/conference-live.js @@ -286,6 +286,7 @@ let setStream = function (roomName) { streamModal.find('.modal-footer .btn').removeClass('active'); + streamModal.find('#stream-select').selectedIndex = -1; let room = getRoom(roomName); let tNow = time(); @@ -301,6 +302,7 @@ } streamModal.find('#stream-button' + room.id).addClass('active'); + streamModal.find('#stream-select').selectedIndex = room.id; }; let updateStream = function () { @@ -323,6 +325,7 @@ let hideModal = function (event) { streamModal.find('iframe').attr('src', ''); streamModal.find('.modal-footer .btn').removeClass('active'); + streamModal.find('#stream-select').selectedIndex = -1; }; let setupStream = function () { @@ -340,7 +343,14 @@ streamModal.find('.modal-footer .btn').on('click', function(event) { event.preventDefault(); - let roomName = $(this).data('room') + let roomName = $(this).data('room'); + setStream(roomName); + }); + + streamModal.find('#stream-select').on('change', function(event) { + event.preventDefault(); + + let roomName = $(this).children('option:selected').text(); setStream(roomName); }); }; diff --git a/_includes/partials/live-modal.html b/_includes/partials/live-modal.html index 00888ce3..8a6c7ee0 100644 --- a/_includes/partials/live-modal.html +++ b/_includes/partials/live-modal.html @@ -19,10 +19,18 @@