Update page title when switching to the front page view

Fixes https://trac.openstreetmap.org/ticket/5063
This commit is contained in:
Tom Hughes 2013-12-09 09:28:13 +00:00
parent de9d26c7df
commit 24893c0936
2 changed files with 3 additions and 0 deletions

View 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() {

View file

@ -31,3 +31,4 @@ translations:
- "*.site.index.remote_failed"
- "*.site.sidebar.search_results"
- "*.diary_entry.edit.marker_text"
- "*.layouts.project_name.title"