Commit 6e3b2677 authored by Efthymia Bika's avatar Efthymia Bika

Scroll down to show alerts

parent cc61b828
...@@ -151,7 +151,7 @@ function show_alert_box(msg, alert_type, hide) { ...@@ -151,7 +151,7 @@ function show_alert_box(msg, alert_type, hide) {
$("#" + alert_type + "-alert").delay(1200).fadeOut(400); $("#" + alert_type + "-alert").delay(1200).fadeOut(400);
} }
$("html,body").animate({ $("html,body").animate({
scrollTop: $("#msg").offset().top}, scrollTop: $("#" + alert_type + "-alert").offset().top},
"slow" "slow"
); );
} }
......
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 to comment