Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
a522655a19
1 changed files with 13 additions and 10 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue