From b2900afb3b23c25ca46b63401f48e634f92f0297 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Mon, 5 Aug 2013 00:51:28 -0400 Subject: [PATCH] Fix ACP --- www/assets/js/data.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/www/assets/js/data.js b/www/assets/js/data.js index b8797caf..ce107cc5 100644 --- a/www/assets/js/data.js +++ b/www/assets/js/data.js @@ -37,8 +37,12 @@ var CHANNEL = { var PLAYER = false; var VIDEOQUALITY = false; var FLUIDLAYOUT = false; -var VWIDTH = $("#videowidth").css("width").replace("px", ""); -var VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16); +var VWIDTH; +var VHEIGHT; +if($("#videowidth").length > 0) { + VWIDTH = $("#videowidth").css("width").replace("px", ""); + VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16); +} var MEDIA = { hash: "" }; var PL_MOVING = false; var PL_ADDING = false;