1
0
Fork 0

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'); require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '2.3.1174' ); define ( 'FRIENDICA_VERSION', '2.3.1175' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
define ( 'DB_UPDATE_VERSION', 1105 ); define ( 'DB_UPDATE_VERSION', 1105 );

View file

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