comments collapsing on page update

This commit is contained in:
friendica 2011-11-24 13:54:21 -08:00
parent b795ce4fe7
commit 8aae7f047d
2 changed files with 10 additions and 10 deletions

View File

@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '2.3.1174' );
define ( 'FRIENDICA_VERSION', '2.3.1175' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
define ( 'DB_UPDATE_VERSION', 1105 );

View File

@ -224,15 +224,15 @@
$.get(update_url,function(data) {
in_progress = false;
$('.collapsed-comments',data).each(function() {
var ident = $(this).attr('id');
var is_hidden = $('#' + ident).is(':hidden');
if($('#' + ident).length) {
$('#' + ident).replaceWith($(this));
if(is_hidden)
$('#' + ident).hide();
}
});
// $('.collapsed-comments',data).each(function() {
// var ident = $(this).attr('id');
// var is_hidden = $('#' + ident).is(':hidden');
// if($('#' + ident).length) {
// $('#' + ident).replaceWith($(this));
// if(is_hidden)
// $('#' + ident).hide();
// }
//});
$('.wall-item-outside-wrapper',data).each(function() {
var ident = $(this).attr('id');
if($('#' + ident).length == 0) {