don't throw JS error when resizing site dialog news tab that doesn't contain any news

This commit is contained in:
rolux 2013-07-19 08:37:10 +00:00
parent fa6b65e235
commit 653666b3ef

View file

@ -195,7 +195,7 @@ pandora.ui.news = function(width, height) {
width = data.width; width = data.width;
height = data.height; height = data.height;
$left.css({width: width - 512}); $left.css({width: width - 512});
$text.css({width: width - 512}); $text && $text.css({width: width - 512});
}; };
that.bindEvent({ that.bindEvent({