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

@@ -20,8 +20,10 @@ define([
return ctx.cpNfInner.metadataMgr.getPrivateData().accountName;
};
funcs.setTitle = function (title /*:string*/, cb) {
funcs.setPadTitleInDrive = function (title, cb) {
ctx.sframeChan.query('Q_SET_PAD_TITLE_IN_DRIVE', title, function (err) {
if (cb) { cb(err); }
});
};
Object.freeze(funcs);
@@ -29,7 +31,7 @@ define([
nThen(function (waitFor) {
SFrameChannel.create(window.top, waitFor(function (sfc) { ctx.sframeChan = sfc; }));
// CpNfInner.start() should be here....
}).nThen(function (waitFor) {
}).nThen(function () {
cb(funcs);
});
} };