show the size of your files, if you're logged in
This commit is contained in:
@@ -676,6 +676,14 @@ define([
|
||||
rpc.getFileListSize(cb);
|
||||
};
|
||||
|
||||
var getFileSize = common.getFileSize = function (href, cb) {
|
||||
var channelId = Hash.hrefToHexChannelId(href);
|
||||
rpc.getFileSize(channelId, function (e, bytes) {
|
||||
if (e) { return void cb(e); }
|
||||
cb(void 0, bytes);
|
||||
});
|
||||
};
|
||||
|
||||
var createButton = common.createButton = function (type, rightside, data, callback) {
|
||||
var button;
|
||||
var size = "17px";
|
||||
|
||||
Reference in New Issue
Block a user