]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/application.js
application.js: Call updateHeader when turbo:render completed
[rails.git] / 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) {