Use the nifty new DocumentTitleAPI to update notification count

and page titles when browsing assets.

This removes the need for updateTitle()
This commit is contained in:
2017-10-05 14:58:54 +02:00
committed by Sybren A. Stüvel
parent f9e10976b8
commit 68c7a88fed
4 changed files with 10 additions and 23 deletions

View File

@@ -340,10 +340,9 @@ script.
updateToggleProjHeaderMenuItem();
var nodeTitle = document.getElementById('node-title');
page_title = $(nodeTitle).text() + " - {{ project.name }} - Blender Cloud";
updateTitle(unread_on_load, page_title);
// Set the page title on the document
var page_title = $('#node-title').text() + " - {{ project.name }} Blender Cloud";
DocumentTitleAPI.set_page_title(page_title);
// TODO: Maybe remove this, now it's also in loadNodeContent(), but double-check
// it's done like that in all users of updateUi().