From: Friendika Date: Thu, 11 Aug 2011 05:20:59 +0000 (-0700) Subject: comment box premature close due to race condition with liveupdate X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3f61f9f2c56a13170c03610665727b5ec17c841b;p=friendica.git comment box premature close due to race condition with liveupdate --- diff --git a/include/main.js b/include/main.js index 6db1f41795..d59c992235 100644 --- a/include/main.js +++ b/include/main.js @@ -174,7 +174,8 @@ else { $('#' + ident + ' ' + '.wall-item-ago').replaceWith($(this).find('.wall-item-ago')); - $('#' + ident + ' ' + '.wall-item-comment-wrapper').replaceWith($(this).find('.wall-item-comment-wrapper')); + if($('#' + ident + ' ' + '.comment-edit-text-empty').length) + $('#' + ident + ' ' + '.wall-item-comment-wrapper').replaceWith($(this).find('.wall-item-comment-wrapper')); $('#' + ident + ' ' + '.wall-item-like').replaceWith($(this).find('.wall-item-like')); $('#' + ident + ' ' + '.wall-item-dislike').replaceWith($(this).find('.wall-item-dislike')); $('#' + ident + ' ' + '.my-comment-photo').each(function() {