lint compliance

pull/1/head
yflory 7 years ago
parent 0cea5f4596
commit 7defde3c59

@ -182,13 +182,14 @@ define([], function () {
});
network.historyKeeper = hk;
var cfg = padData = {
var cfg = {
validateKey: validateKey,
lastKnownHash: lastKnownHash,
owners: owners,
expire: expire,
password: password
};
padData = cfg;
var msg = ['GET_HISTORY', wc.id, cfg];
// Add the validateKey if we are the channel creator and we have a validateKey
if (hk) { network.sendto(hk, JSON.stringify(msg)); }

@ -457,7 +457,7 @@ define([
var allFiles = files[FILES_DATA];
return Object.keys(allFiles).filter(function (id) {
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')) {
// TODO
// Remove owned pad from drive and remove from server
var pathsList = [];
paths.forEach(function (p) { pathsList.push(p.path); });
var msg = Messages._getKey("fm_deleteOwnedPads"); // XXX
UI.confirm(msg, function(res) {
var pathsListD = [];
paths.forEach(function (p) { pathsListD.push(p.path); });
var msgD = Messages._getKey("fm_deleteOwnedPads"); // XXX
UI.confirm(msgD, function(res) {
$(window).focus();
if (!res) { return; }
filesOp.delete(pathsList, refresh);
filesOp.delete(pathsListD, refresh);
// TODO HERE
// RPC to delete from server?
});

Loading…
Cancel
Save