From 08258da9444a94708426cf2d445e60b21dbbe84a Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 4 Jul 2013 15:46:20 -0700 Subject: fix undefined commentWrap --- js/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 161068310..9eb9c7946 100644 --- a/js/main.js +++ b/js/main.js @@ -351,9 +351,12 @@ function updateConvItems(mode,data) { var ident = $(this).attr('id'); var commentWrap = $('#'+ident+' .collapsed-comments').attr('id'); - var itmId = commentWrap.replace('collapsed-comments-',''); + var itmId = 0; var isVisible = false; + if(typeof commentWrap !== 'undefined') + itmId = commentWrap.replace('collapsed-comments-',''); + if($('#' + ident).length == 0 && profile_page == 1) { $('img',this).each(function() { $(this).attr('src',$(this).attr('dst')); -- cgit v1.2.3