Added RPC setPadTitleInDrive()

This commit is contained in:
Caleb James DeLisle
2017-08-17 17:34:08 +02:00
parent 3b5af3ea74
commit 0b34ceb0eb
4 changed files with 19 additions and 5 deletions

View File

@@ -754,7 +754,7 @@ define([
$(waitFor(function () {
Cryptpad.addLoadingScreen();
}));
SFCommon.create(waitFor(function (c) { common = c; }));
SFCommon.create(waitFor(function (c) { module.common = common = c; }));
}).nThen(function (waitFor) {
Ckeditor.config.toolbarCanCollapse = true;
if (screen.height < 800) {

View File

@@ -65,6 +65,12 @@ define([
}
});
sframeChan.on('Q_SET_PAD_TITLE_IN_DRIVE', function (newTitle, cb) {
Cryptpad.renamePad(newTitle, undefined, function (err) {
if (err) { cb('ERROR'); } else { cb(); }
});
});
CpNfOuter.start({
sframeChan: sframeChan,
channel: secret.channel,