From 653666b3ef2185270011f18a528c75edebfaf3cd Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 19 Jul 2013 08:37:10 +0000 Subject: [PATCH] don't throw JS error when resizing site dialog news tab that doesn't contain any news --- static/js/news.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/news.js b/static/js/news.js index 2374c87cf..87d5eab25 100644 --- a/static/js/news.js +++ b/static/js/news.js @@ -195,7 +195,7 @@ pandora.ui.news = function(width, height) { width = data.width; height = data.height; $left.css({width: width - 512}); - $text.css({width: width - 512}); + $text && $text.css({width: width - 512}); }; that.bindEvent({