Browse Source

Fixed issues 10 and adjust the style

Fechin 6 years ago
parent
commit
85dde2bdbd
2 changed files with 21 additions and 65 deletions
  1. 18 65
      source/css/diaspora.css
  2. 3 0
      source/js/diaspora.js

File diff suppressed because it is too large
+ 18 - 65
source/css/diaspora.css


+ 3 - 0
source/js/diaspora.js

@@ -327,8 +327,11 @@ $(function() {
                     } else {
                         $('#pager').remove()
                     }
+                    var tempScrollTop = $(window).scrollTop();
                     $('#primary').append($(data).find('.post'))
+                    $(window).scrollTop(tempScrollTop);
                     Diaspora.loaded()
+                    $('html,body').animate({ scrollTop: tempScrollTop + 400 }, 500);
                 }, function() {
                     tag.html('加载更多').data('status', 'loaded')
                 })

Some files were not shown because too many files changed in this diff