Commit 91763ce1 by Kálmán Viktor

dashboard: scroll top after a messages is added to the page

parent a6d77c7f
......@@ -127,6 +127,7 @@ function massDeleteVm() {
function addMessage(text, type) {
$('body').animate({scrollTop: 0});
div = '<div style="display: none;" class="alert alert-' + type + '">' + text + '</div>';
$('.messagelist').html('').append(div);
$('.messagelist div').fadeIn();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment