Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/06/2013 12:09:17 AM (12 years ago)
Author:
boonebgorges
Message:

When activity comments are deleted via AJAX, remove them from the DOM entirely

Previously, deleted comments were merely hidden using jQuery.fadeOut(). As a
result, when the show/hide comment button was toggled - applying $.show() to
all comment items - the comments would appear again, even though they had been
deleted from the server. Removing them from the DOM ensures that this won't
happen.

See #4844

Props merty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/global.js

    r6940 r7000  
    505505                            child_count++;
    506506                    });
    507                     comment_li.fadeOut(200);
     507                    comment_li.fadeOut(200, function() {
     508                        comment_li.remove();
     509                    });
    508510
    509511                    /* Decrease the "Reply (X)" button count */
Note: See TracChangeset for help on using the changeset viewer.