Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging

This commit is contained in:
yflory 2018-02-08 12:24:49 +01:00
commit c9243b7b46

View file

@ -2673,11 +2673,14 @@ define([
var data = JSON.parse(JSON.stringify(filesOp.getFileData(el)));
if (!data || !data.href) { return void cb('INVALID_FILE'); }
data.href = base + data.href;
var roUrl;
if (ro) {
data.roHref = data.href;
delete data.href;
} else {
data.roHref = base + getReadOnlyUrl(el);
roUrl = getReadOnlyUrl(el);
if (roUrl) { data.roHref = base + roUrl; }
}
UIElements.getProperties(common, data, cb);