]> git.openstreetmap.org Git - rails.git/commitdiff
application.js: Call updateHeader when turbo:render completed
authorGregory Igelmund <github.com@grekko.de>
Mon, 4 Mar 2024 14:54:38 +0000 (15:54 +0100)
committerGregory Igelmund <github.com@grekko.de>
Thu, 21 Mar 2024 13:55:16 +0000 (14:55 +0100)
app/assets/javascripts/application.js

index e9cc08606d0702075f6a2e293cfc1a1215d61edd..c71c0652dad9b652dc34caa44e9392d8013a5f91 100644 (file)
@@ -112,6 +112,7 @@ $(document).ready(function () {
     updateHeader();
 
     $(window).resize(updateHeader);
+    $(document).on("turbo:render", updateHeader);
   }, 0);
 
   $("#menu-icon").on("click", function (e) {