Mercurial > kallithea
changeset 7476:26b1e8a6998c
files: set page title explicitly when navigating history
To be used when dropping native.history.js ...
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 25 Dec 2018 20:23:42 +0100 |
parents | 553f38960a5a |
children | 006d68c4d7b9 |
files | kallithea/templates/files/files.html |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/files/files.html Tue Dec 25 20:23:42 2018 +0100 +++ b/kallithea/templates/files/files.html Tue Dec 25 20:23:42 2018 +0100 @@ -82,7 +82,7 @@ // Change our States and save some data for handling events var state = {url:url, title:title, url_base:_url_base, node_list_url:_node_list_url, rev:rev, f_path:f_path}; - History.pushState(state, title, url); + History.pushState(state, null, url); //now we're sure that we can do ypjax things e.preventDefault(); @@ -113,6 +113,8 @@ tooltip_activate(); if(state !== undefined) { + document.title = state.title; + //initially loaded stuff var _f_path = state.f_path; var _rev = state.rev;