fix for last commit

This commit is contained in:
Hannes Mannerheim 2016-01-09 21:27:02 +01:00
parent 977faaade3
commit eb10b4c906
2 changed files with 3 additions and 3 deletions

View File

@ -1221,7 +1221,7 @@ function expand_queet(q,doScrolling) {
function cleanUpAfterCollapseQueet(streamItem) {
var queet = streamItem.children('.queet');
streamItem.css('height','auto');
streamItem.children('.queet').css('margin-top','0');
queet.css('margin-top','0');
streamItem.removeClass('expanded');
streamItem.prev().removeClass('next-expanded');
streamItem.removeClass('collapsing');

View File

@ -943,8 +943,8 @@ function rememberStreamStateInLocalStorage() {
feed.children('.stream-item').removeClass('not-seen');
feed.children('.stream-item').removeClass('selected-by-keyboard');
feed.find('.stream-item').removeClass('expanded').removeClass('next-expanded').removeClass('hidden').removeClass('collapsing').addClass('visible');
$.each(feed, function(k,streamItem) {
cleanUpAfterCollapseQueet($(streamItem));
feed.children('.stream-item').each(function() {
cleanUpAfterCollapseQueet($(this));
});
var feedHtml = feed.html();
var profileCardHtml = $('#feed').siblings('.profile-card').outerHTML();