From 00b9ec8192d1398281415a057527cabc70c2775e Mon Sep 17 00:00:00 2001 From: "Robin B." Date: Sun, 21 Jun 2015 17:18:30 +0200 Subject: [PATCH] scroll down the fucking page --- app/assets/javascripts/locale-box.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/locale-box.coffee b/app/assets/javascripts/locale-box.coffee index 47ec3e39..a510575a 100644 --- a/app/assets/javascripts/locale-box.coffee +++ b/app/assets/javascripts/locale-box.coffee @@ -1,3 +1,4 @@ $(document).on 'click', '#locale-switch', (event) -> event.preventDefault() $('#locales-panel').slideToggle() + $("html, body").animate({ scrollTop: $(document).height() }, 1000)