From e3615e0d289e7cc6db86a24f9f1e6cc5cb8bf288 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 25 Feb 2015 14:14:54 -0600 Subject: [PATCH] FS-7509: fix typo --- html5/verto/video_demo/index.html | 1 + html5/verto/video_demo/verto.js | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/html5/verto/video_demo/index.html b/html5/verto/video_demo/index.html index 1ed53637ce..4b13390a1c 100644 --- a/html5/verto/video_demo/index.html +++ b/html5/verto/video_demo/index.html @@ -255,6 +255,7 @@ function dial(ext) + diff --git a/html5/verto/video_demo/verto.js b/html5/verto/video_demo/verto.js index a5a2367c29..02930e3b4d 100644 --- a/html5/verto/video_demo/verto.js +++ b/html5/verto/video_demo/verto.js @@ -15,6 +15,7 @@ var local_vid_height = 180; var outgoingBandwidth; var incomingBandwidth; +var vqual; $( ".selector" ).pagecontainer({ "theme": "a" }); @@ -689,7 +690,7 @@ function init() { $.cookie("verto_demo_vid_checked", tmp, { expires: 365 }); - console.error(tmp); + if (tmp !== "true") { $("#camdiv").hide(); $(".sharediv").hide(); @@ -870,11 +871,13 @@ function init() { }); // - var vqual = $.cookie("verto_demo_vqual") || "qvga"; + vqual = $.cookie("verto_demo_vqual") || "qvga"; $.cookie("verto_demo_vqual", vqual, { expires: 365 }); + + $("#vqual_qvga").prop("checked", vqual === "qvga").change(function(e) { if ($("#vqual_qvga").is(':checked')) { vqual = "qvga"; @@ -905,7 +908,7 @@ function init() { }); - $("#vqual_vga").prop("checked", vqual === "vga_wide").change(function(e) { + $("#vqual_vga_wide").prop("checked", vqual === "vga_wide").change(function(e) { if ($("#vqual_vga_wide").is(':checked')) { vqual = "vga_wide"; $.cookie("verto_demo_vqual", vqual, { @@ -934,8 +937,6 @@ function init() { } }); - - tmp = $.cookie("verto_demo_stereo_checked") || "true"; $.cookie("verto_demo_stereo_checked", tmp, {