]> git.mxchange.org Git - friendica.git/commitdiff
comment box premature close due to race condition with liveupdate
authorFriendika <info@friendika.com>
Thu, 11 Aug 2011 05:20:59 +0000 (22:20 -0700)
committerFriendika <info@friendika.com>
Thu, 11 Aug 2011 05:20:59 +0000 (22:20 -0700)
include/main.js

index 6db1f417957aa8ee07b7a7803e2aabaab7dd4731..d59c992235962d7a7d1819b84d2f7e7a14764ced 100644 (file)
                                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() {