Skip to:
Content

BuddyPress.org

Changeset 3674


Ignore:
Timestamp:
01/08/2011 07:50:23 PM (14 years ago)
Author:
boonebgorges
Message:

Updates profile header status via AJAX when status update is posted on profile screen. Fixes #2065

File:
1 edited

Legend:

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

    r3592 r3674  
    9090                jq("ul.activity-list").prepend(response);
    9191                jq("ul.activity-list li:first").addClass('new-update');
     92               
     93                if ( 0 != jq("div#latest-update").length ) {
     94                    var l = jq("ul#activity-stream li.new-update .activity-content .activity-inner p").html();
     95                    var v = jq("ul#activity-stream li.new-update .activity-content .activity-header p a.view").attr('href');
     96                   
     97                    jq("div#latest-update").slideUp(300,function(){
     98                        jq("div#latest-update").html('"' + l + '" &middot; <a href="' + v + '" rel="nofollow">View</a>');
     99                        jq("div#latest-update").slideDown(300);
     100                    });
     101                }
     102               
    92103                jq("li.new-update").hide().slideDown( 300 );
    93104                jq("li.new-update").removeClass( 'new-update' );
Note: See TracChangeset for help on using the changeset viewer.