From b5a87581d515c3c76ea363b931b8523d389491f4 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 23 Jun 2015 12:40:42 +0200 Subject: [PATCH] Make roomInfo a global var --- public/js/vroom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index fd8da71..2ba7fd2 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -31,6 +31,7 @@ var itemPerPage = 20; // Will store the global webrtc object var webrtc = undefined; +var roomInfo = {}; // Mark current page link as active $('#lnk_' + page).addClass('active'); @@ -676,7 +677,6 @@ function initJoin(room){ } }); - function try_auth(pass, hideErrorMsg){ $.ajax({ data: { @@ -689,6 +689,7 @@ function initJoin(room){ }) }, error: function(data){ + // 401 means password is missing or incorrect if (data.status === 401){ $('#auth-before-join').slideDown(); } @@ -740,7 +741,6 @@ function initVroom(room) { hasVideo: true } }; - var roomInfo; var mainVid = false, chatHistory = {}, chatIndex = 0,