]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Update page title when switching to the front page view
[rails.git] / app / assets / javascripts / index.js
index 0f2971f2c9e6b26c6f1af9f86d861581badc5b66..d7a14c31209c98f26f32d7ae7cabb05969b231b7 100644 (file)
@@ -223,6 +223,7 @@ $(document).ready(function () {
       $("#content").addClass("overlay-sidebar");
       map.invalidateSize({pan: false})
         .panBy([-350, 0], {animate: false});
+      document.title = I18n.t('layouts.project_name.title');
     };
 
     page.load = function() {
@@ -232,6 +233,7 @@ $(document).ready(function () {
     page.popstate = function() {
       $("#content").addClass("overlay-sidebar");
       map.invalidateSize({pan: false});
+      document.title = I18n.t('layouts.project_name.title');
     };
 
     page.unload = function() {