refactor bbb helper and implement wait for mod

This commit is contained in:
Zachary Chai
2016-10-26 13:41:55 -04:00
parent dadaa52387
commit 3aeef0a4cf
9 changed files with 98 additions and 37 deletions

View File

@ -33,16 +33,22 @@
var link = window.location.protocol +
'//' +
window.location.hostname +
'/' +
'meetings/' +
'/meetings/' +
Math.trunc(Math.random() * 1000000000);
$('.meeting-url').val(link);
});
$('.meeting-url').val('');
$('.generate-link').click();
if (meetingId = $('.meeting-url').data('meetingId')) {
var link = window.location.protocol +
'//' +
window.location.hostname +
'/meetings/' +
meetingId;
$('.meeting-url').val(link)
} else {
$('.generate-link').click();
}
};
var initRooms = function() {