lint compliance
This commit is contained in:
parent
0cea5f4596
commit
7defde3c59
@ -182,13 +182,14 @@ define([], function () {
|
|||||||
});
|
});
|
||||||
network.historyKeeper = hk;
|
network.historyKeeper = hk;
|
||||||
|
|
||||||
var cfg = padData = {
|
var cfg = {
|
||||||
validateKey: validateKey,
|
validateKey: validateKey,
|
||||||
lastKnownHash: lastKnownHash,
|
lastKnownHash: lastKnownHash,
|
||||||
owners: owners,
|
owners: owners,
|
||||||
expire: expire,
|
expire: expire,
|
||||||
password: password
|
password: password
|
||||||
};
|
};
|
||||||
|
padData = cfg;
|
||||||
var msg = ['GET_HISTORY', wc.id, cfg];
|
var msg = ['GET_HISTORY', wc.id, cfg];
|
||||||
// Add the validateKey if we are the channel creator and we have a validateKey
|
// Add the validateKey if we are the channel creator and we have a validateKey
|
||||||
if (hk) { network.sendto(hk, JSON.stringify(msg)); }
|
if (hk) { network.sendto(hk, JSON.stringify(msg)); }
|
||||||
|
|||||||
@ -457,7 +457,7 @@ define([
|
|||||||
var allFiles = files[FILES_DATA];
|
var allFiles = files[FILES_DATA];
|
||||||
return Object.keys(allFiles).filter(function (id) {
|
return Object.keys(allFiles).filter(function (id) {
|
||||||
return allFiles[id].owners && allFiles[id].owners.indexOf(edPub) !== -1;
|
return allFiles[id].owners && allFiles[id].owners.indexOf(edPub) !== -1;
|
||||||
}).map(function (k) { return Number(k); });;
|
}).map(function (k) { return Number(k); });
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -2755,13 +2755,13 @@ define([
|
|||||||
else if ($(this).hasClass('cp-app-drive-context-deleteowned')) {
|
else if ($(this).hasClass('cp-app-drive-context-deleteowned')) {
|
||||||
// TODO
|
// TODO
|
||||||
// Remove owned pad from drive and remove from server
|
// Remove owned pad from drive and remove from server
|
||||||
var pathsList = [];
|
var pathsListD = [];
|
||||||
paths.forEach(function (p) { pathsList.push(p.path); });
|
paths.forEach(function (p) { pathsListD.push(p.path); });
|
||||||
var msg = Messages._getKey("fm_deleteOwnedPads"); // XXX
|
var msgD = Messages._getKey("fm_deleteOwnedPads"); // XXX
|
||||||
UI.confirm(msg, function(res) {
|
UI.confirm(msgD, function(res) {
|
||||||
$(window).focus();
|
$(window).focus();
|
||||||
if (!res) { return; }
|
if (!res) { return; }
|
||||||
filesOp.delete(pathsList, refresh);
|
filesOp.delete(pathsListD, refresh);
|
||||||
// TODO HERE
|
// TODO HERE
|
||||||
// RPC to delete from server?
|
// RPC to delete from server?
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user