|
@@ -162,6 +162,10 @@ $(document).bind('callterminated.jingle', function (event, sid, reason) {
|
162
|
162
|
$(document).bind('joined.muc', function (event, jid, info) {
|
163
|
163
|
console.log('onJoinComplete', info);
|
164
|
164
|
updateRoomUrl(window.location.href);
|
|
165
|
+
|
|
166
|
+ // Once we've joined the muc show the toolbar
|
|
167
|
+ showToolbar();
|
|
168
|
+
|
165
|
169
|
if (Object.keys(connection.emuc.members).length < 1) {
|
166
|
170
|
focus = new ColibriFocus(connection, config.hosts.bridge);
|
167
|
171
|
return;
|
|
@@ -171,6 +175,7 @@ $(document).bind('joined.muc', function (event, jid, info) {
|
171
|
175
|
$(document).bind('entered.muc', function (event, jid, info) {
|
172
|
176
|
console.log('entered', jid, info);
|
173
|
177
|
console.log(focus);
|
|
178
|
+
|
174
|
179
|
if (focus !== null) {
|
175
|
180
|
// FIXME: this should prepare the video
|
176
|
181
|
if (focus.confid === null) {
|
|
@@ -422,6 +427,10 @@ function openChat() {
|
422
|
427
|
$('#usermsg').focus();
|
423
|
428
|
}
|
424
|
429
|
|
|
430
|
+function showToolbar() {
|
|
431
|
+ $('#toolbar').css({visibility:"visible"});
|
|
432
|
+}
|
|
433
|
+
|
425
|
434
|
function updateRoomUrl(newRoomUrl) {
|
426
|
435
|
roomUrl = newRoomUrl;
|
427
|
436
|
}
|