diff options
Diffstat (limited to 'js/main.js')
-rw-r--r-- | js/main.js | 5 |
1 files changed, 4 insertions, 1 deletions
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')); |