Update page title when switching to the front page view
Fixes https://trac.openstreetmap.org/ticket/5063
This commit is contained in:
parent
de9d26c7df
commit
24893c0936
2 changed files with 3 additions and 0 deletions
|
@ -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() {
|
||||
|
|
|
@ -31,3 +31,4 @@ translations:
|
|||
- "*.site.index.remote_failed"
|
||||
- "*.site.sidebar.search_results"
|
||||
- "*.diary_entry.edit.marker_text"
|
||||
- "*.layouts.project_name.title"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue