|
|
@ -18,6 +18,16 @@ define([
|
|
|
|
opts = opts || {};
|
|
|
|
opts = opts || {};
|
|
|
|
var $d = $('<div>');
|
|
|
|
var $d = $('<div>');
|
|
|
|
if (!data) { return void cb(void 0, $d); }
|
|
|
|
if (!data) { return void cb(void 0, $d); }
|
|
|
|
|
|
|
|
data = Util.clone(data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var privateData = common.getMetadataMgr().getPrivateData();
|
|
|
|
|
|
|
|
if (privateData.propChannels) {
|
|
|
|
|
|
|
|
var p = privateData.propChannels;
|
|
|
|
|
|
|
|
data.channel = data.channel || p.channel;
|
|
|
|
|
|
|
|
data.rtChannel = data.rtChannel || p.rtChannel;
|
|
|
|
|
|
|
|
data.lastVersion = data.lastVersion || p.lastVersion;
|
|
|
|
|
|
|
|
data.lastCpHash = data.lastCpHash || p.lastCpHash;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (data.channel) {
|
|
|
|
if (data.channel) {
|
|
|
|
$('<label>', { 'for': 'cp-app-prop-id'}).text(Messages.documentID).appendTo($d);
|
|
|
|
$('<label>', { 'for': 'cp-app-prop-id'}).text(Messages.documentID).appendTo($d);
|
|
|
@ -26,18 +36,20 @@ define([
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (data.href) {
|
|
|
|
if (!data.fakeHref) {
|
|
|
|
$('<label>', {'for': 'cp-app-prop-link'}).text(Messages.editShare).appendTo($d);
|
|
|
|
if (data.href) {
|
|
|
|
$d.append(UI.dialog.selectable(data.href, {
|
|
|
|
$('<label>', {'for': 'cp-app-prop-link'}).text(Messages.editShare).appendTo($d);
|
|
|
|
id: 'cp-app-prop-link',
|
|
|
|
$d.append(UI.dialog.selectable(data.href, {
|
|
|
|
}));
|
|
|
|
id: 'cp-app-prop-link',
|
|
|
|
}
|
|
|
|
}));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (data.roHref && !opts.noReadOnly) {
|
|
|
|
if (data.roHref && !opts.noReadOnly) {
|
|
|
|
$('<label>', {'for': 'cp-app-prop-rolink'}).text(Messages.viewShare).appendTo($d);
|
|
|
|
$('<label>', {'for': 'cp-app-prop-rolink'}).text(Messages.viewShare).appendTo($d);
|
|
|
|
$d.append(UI.dialog.selectable(data.roHref, {
|
|
|
|
$d.append(UI.dialog.selectable(data.roHref, {
|
|
|
|
id: 'cp-app-prop-rolink',
|
|
|
|
id: 'cp-app-prop-rolink',
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (data.tags && Array.isArray(data.tags)) {
|
|
|
|
if (data.tags && Array.isArray(data.tags)) {
|
|
|
@ -54,7 +66,6 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
if (!common.isLoggedIn()) { return void cb(void 0, $d); }
|
|
|
|
if (!common.isLoggedIn()) { return void cb(void 0, $d); }
|
|
|
|
|
|
|
|
|
|
|
|
var privateData = common.getMetadataMgr().getPrivateData();
|
|
|
|
|
|
|
|
if (privateData.offline) { return void cb(void 0, $d); }
|
|
|
|
if (privateData.offline) { return void cb(void 0, $d); }
|
|
|
|
|
|
|
|
|
|
|
|
// File and history size...
|
|
|
|
// File and history size...
|
|
|
@ -179,6 +190,7 @@ define([
|
|
|
|
Properties.getPropertiesModal = function (common, opts, cb) {
|
|
|
|
Properties.getPropertiesModal = function (common, opts, cb) {
|
|
|
|
cb = cb || function () {};
|
|
|
|
cb = cb || function () {};
|
|
|
|
opts = opts || {};
|
|
|
|
opts = opts || {};
|
|
|
|
|
|
|
|
opts.access = true;
|
|
|
|
var tabs = [{
|
|
|
|
var tabs = [{
|
|
|
|
getTab: getPadProperties,
|
|
|
|
getTab: getPadProperties,
|
|
|
|
title: Messages.fc_prop,
|
|
|
|
title: Messages.fc_prop,
|
|
|
|