From: Gregory Igelmund Date: Mon, 4 Mar 2024 14:54:38 +0000 (+0100) Subject: application.js: Call updateHeader when turbo:render completed X-Git-Tag: live~719^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/f3a31e00d45a824ccd67a2ce1d77f19a1240aef8 application.js: Call updateHeader when turbo:render completed --- diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index e9cc08606..c71c0652d 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -112,6 +112,7 @@ $(document).ready(function () { updateHeader(); $(window).resize(updateHeader); + $(document).on("turbo:render", updateHeader); }, 0); $("#menu-icon").on("click", function (e) {