|
|
@ -12,6 +12,8 @@ define([
|
|
|
|
Messages, nThen) {
|
|
|
|
Messages, nThen) {
|
|
|
|
var Properties = {};
|
|
|
|
var Properties = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Messages.documentID = Messages.documentID || 'Document identifier'; // XXX
|
|
|
|
|
|
|
|
|
|
|
|
var getPadProperties = function (Env, data, opts, _cb) {
|
|
|
|
var getPadProperties = function (Env, data, opts, _cb) {
|
|
|
|
var cb = Util.once(Util.mkAsync(_cb));
|
|
|
|
var cb = Util.once(Util.mkAsync(_cb));
|
|
|
|
var common = Env.common;
|
|
|
|
var common = Env.common;
|
|
|
@ -19,6 +21,13 @@ define([
|
|
|
|
var $d = $('<div>');
|
|
|
|
var $d = $('<div>');
|
|
|
|
if (!data) { return void cb(void 0, $d); }
|
|
|
|
if (!data) { return void cb(void 0, $d); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (data.channel) {
|
|
|
|
|
|
|
|
$('<label>', { 'for': 'cp-app-prop-id'}).text(Messages.documentID).appendTo($d);
|
|
|
|
|
|
|
|
$d.append(UI.dialog.selectable(data.channel, {
|
|
|
|
|
|
|
|
id: 'cp-app-prop-id',
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (data.href) {
|
|
|
|
if (data.href) {
|
|
|
|
$('<label>', {'for': 'cp-app-prop-link'}).text(Messages.editShare).appendTo($d);
|
|
|
|
$('<label>', {'for': 'cp-app-prop-link'}).text(Messages.editShare).appendTo($d);
|
|
|
|
$d.append(UI.dialog.selectable(data.href, {
|
|
|
|
$d.append(UI.dialog.selectable(data.href, {
|
|
|
|