aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-04 15:46:20 -0700
committerfriendica <info@friendica.com>2013-07-04 15:46:20 -0700
commit08258da9444a94708426cf2d445e60b21dbbe84a (patch)
treeb508cbb712ffa4b9e455e59387e03017d8da99f2
parent2979a2ee5a3a820bdc6ccbda173a5e5016d570db (diff)
downloadvolse-hubzilla-08258da9444a94708426cf2d445e60b21dbbe84a.tar.gz
volse-hubzilla-08258da9444a94708426cf2d445e60b21dbbe84a.tar.bz2
volse-hubzilla-08258da9444a94708426cf2d445e60b21dbbe84a.zip
fix undefined commentWrap
-rw-r--r--js/main.js5
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'));