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

@@ -87,8 +87,9 @@ script(type="text/javascript").
$(function () {
$('#tags').select2();
page_title = 'Edit: {{ node.name }} — {{ project.name }}';
updateTitle(unread_on_load, page_title);
// Set the page title on the document
var page_title = 'Edit: {{ node.name }} - {{ project.name }} — Blender Cloud';
DocumentTitleAPI.set_page_title(page_title);
/* Build the markdown preview when typing in textarea */
var convert = new Markdown.getSanitizingConverter();