From f89015d9ed27a01d2d91ad144715be09faea34bd Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 28 Aug 2017 14:49:33 +0200 Subject: [PATCH] Update the tab title to match the pad title in pad2 --- www/common/sframe-common-title.js | 1 + www/pad/main.js | 1 + 2 files changed, 2 insertions(+) diff --git a/www/common/sframe-common-title.js b/www/common/sframe-common-title.js index 20f5052ea..7e44d14fd 100644 --- a/www/common/sframe-common-title.js +++ b/www/common/sframe-common-title.js @@ -64,6 +64,7 @@ define(['jquery'], function ($) { var md = metadataMgr.getMetadata(); $title.find('span.title').text(md.title || md.defaultTitle); $title.find('input').val(md.title || md.defaultTitle); + exp.title = md.title; //exp.updateTitle(md.title || md.defaultTitle); }); diff --git a/www/pad/main.js b/www/pad/main.js index 443ac27f2..a01dee3cd 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -127,6 +127,7 @@ define([ }); sframeChan.on('Q_SET_PAD_TITLE_IN_DRIVE', function (newTitle, cb) { + document.title = newTitle; Cryptpad.renamePad(newTitle, undefined, function (err) { if (err) { cb('ERROR'); } else { cb(); } });