Commit 0e19b58b by Kálmán Viktor

dashboard: scroll to top if there is a message

parent 47a96a77
...@@ -44,6 +44,10 @@ $(function () { ...@@ -44,6 +44,10 @@ $(function () {
if (window.location.hash) if (window.location.hash)
$("a[href=" + window.location.hash +"]").tab('show'); $("a[href=" + window.location.hash +"]").tab('show');
/* scroll to top if there is a message */
if($(".messagelist").children(".alert").length > 0)
$('body').animate({scrollTop: 0});
addSliderMiscs(); addSliderMiscs();
/* for VM removes buttons */ /* for VM removes buttons */
......
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