From 3f61f9f2c56a13170c03610665727b5ec17c841b Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 10 Aug 2011 22:20:59 -0700 Subject: [PATCH] comment box premature close due to race condition with liveupdate --- include/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {