dynamic room content

This commit is contained in:
Zachary Chai
2016-11-09 15:29:36 -05:00
parent 7068d0b023
commit d22cc3e6d0
9 changed files with 43 additions and 37 deletions

View File

@ -2,7 +2,7 @@
var sessionStatusRefresh = function(url) {
$.get(url + "/session_status_refresh", function(html) {
$(".join-form-wrapper").html(html);
$(".center-panel-wrapper").html(html);
});
}

View File

@ -15,7 +15,7 @@
var init = function() {
$('.center-panel').on ('click', '.meeting-join', function (event) {
$('.center-panel-wrapper').on ('click', '.meeting-join', function (event) {
var url = $('.meeting-url').val();
var name = $('.meeting-user-name').val();
Meeting.getInstance().setURL(url);
@ -34,7 +34,7 @@
});
});
$('.center-panel').on ('click', '.meeting-end', function (event) {
$('.center-panel-wrapper').on ('click', '.meeting-end', function (event) {
var jqxhr = Meeting.getInstance().endMeeting();
var btn = $(this);
btn.prop("disabled", true);
@ -46,7 +46,7 @@
});
});
$('.center-panel').on ('click', '.meeting-url-copy', function (event) {
$('.center-panel-wrapper').on ('click', '.meeting-url-copy', function (event) {
meetingURL = $('.meeting-url');
meetingURL.select();
document.execCommand("copy");
@ -94,12 +94,7 @@
};
var initRooms = function() {
meetingURL = $('.meeting-url');
var link = window.location.protocol +
'//' +
window.location.hostname +
meetingURL.data('path');
meetingURL.val(link);
displayMeetingURL();
// initialize recordings datatable
recordingsTable = $('#recordings').dataTable({

View File

@ -91,3 +91,12 @@ var showAlert = function(html, timeout_delay) {
}, timeout_delay);
}
}
var displayMeetingURL = function() {
meetingURL = $('.meeting-url');
var link = window.location.protocol +
'//' +
window.location.hostname +
meetingURL.data('path');
meetingURL.val(link);
}