Update page / tab title when navigating

This commit is contained in:
Peter Parente 2018-01-30 21:21:41 -05:00
parent 611762b255
commit 386b3a248a

View File

@ -412,6 +412,10 @@ define([
$('body').attr('data-notebook-path', path);
// Update the file tree list without reloading the page
this.load_list();
// Update the page title so the browser tab reflects it
// Match how the title appears with a trailing slash or
// "Home" if the page loads from the server.
$('title').text(path ? path+'/' : i18n.msg._("Home"));
};
/**