aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--view/js/main.js1
-rw-r--r--view/tpl/notifications_widget.tpl1
2 files changed, 1 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 84fa44d4a..66a0bda2f 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -826,7 +826,6 @@ function scrollToItem() {
$('html, body').animate({ scrollTop: $(this).offset().top - $('nav').outerHeight(true) }, 'slow');
$(this).addClass('item-highlight');
}
-
});
}
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl
index 9191c2470..5e96c2767 100644
--- a/view/tpl/notifications_widget.tpl
+++ b/view/tpl/notifications_widget.tpl
@@ -117,6 +117,7 @@
{{/foreach}}
function getData(b64mid, notify_id) {
+ $(document).scrollTop(0);
$('.thread-wrapper').remove();
bParam_mid = b64mid;
mode = 'replace';