So when opening mulitple tabs, it's easy to see which tab shows which DZ-page.
Code: Select all
$(function () {
// Init Events
$(window).on('hashchange', function () { UpdateOnNavigate(); });
$("#appnavbar a[href]").click(function () { UpdateOnNavigate(); });
UpdateOnNavigate();
}); // Doc Ready
function UpdateOnNavigate() {
// Update browser titel
titel = location.href;
if (titel.indexOf('#') >= 0) {
titel = titel.split('#')[1].replace('/', '') + ' - DZ';
titel = titel.trim(' ').trim('-');
document.title = titel;
}
}