Update the tab title to match the pad title in pad2

pull/1/head
yflory 7 years ago
parent 51c065d13c
commit f89015d9ed

@ -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);
});

@ -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(); }
});

Loading…
Cancel
Save