Merge branch 'master' of github.com:diaspora/diaspora

This commit is contained in:
Michael Sofaer 2010-12-04 17:19:11 -08:00
commit a522655a19

View file

@ -91,21 +91,24 @@ processPerson: function(response){
processPost: function(className, postId, html, aspectIds){
if(WebSocketReceiver.onPageForAspects(aspectIds)){
if( $("#no_posts").is(":visible") ){
$("#no_posts").fadeOut(400, WebSocketReceiver.addPostToStream(postId, html)).hide();
} else {
WebSocketReceiver.addPostToStream(postId, html);
}
WebSocketReceiver.addPostToStream(postId, html);
}
},
addPostToStream: function(postId, html){
if( $(".message[data-guid='"+postId+"']").length == 0 ){
$("#main_stream:not('.show')").prepend(
$(html).fadeIn("fast", function(){
$("#main_stream").find("label").first().inFieldLabels();
})
);
var showMessage = function(){ $("#main_stream:not('.show')").prepend(
$(html).fadeIn("fast", function(){
$("#main_stream").find("label").first().inFieldLabels();
})
);
};
if( $("#no_posts").is(":visible") ){
$("#no_posts").fadeOut(400, showMessage()).hide();
} else {
showMessage();
}
}
},