forked from 0x2620/pandora
add multi value add/remove to items
This commit is contained in:
parent
7cc5ae8d65
commit
d4df903f82
2 changed files with 12 additions and 3 deletions
|
@ -516,12 +516,12 @@ pandora.ui.infoView = function(data, isMixed) {
|
||||||
}
|
}
|
||||||
$('<span>').html(formatKey(key)).appendTo($element);
|
$('<span>').html(formatKey(key)).appendTo($element);
|
||||||
Ox.EditableContent({
|
Ox.EditableContent({
|
||||||
editable: canEdit,
|
|
||||||
clickLink: pandora.clickLink,
|
clickLink: pandora.clickLink,
|
||||||
|
editable: canEdit,
|
||||||
format: function(value) {
|
format: function(value) {
|
||||||
return formatValue(key, value);
|
return formatValue(key, value);
|
||||||
},
|
},
|
||||||
placeholder: formatLight(Ox._( isMixed[key] ? 'mixed' : 'unknown')),
|
placeholder: formatLight(Ox._(isMixed[key] ? 'mixed' : 'unknown')),
|
||||||
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
||||||
value: getValue(key, data[key])
|
value: getValue(key, data[key])
|
||||||
})
|
})
|
||||||
|
@ -542,6 +542,7 @@ pandora.ui.infoView = function(data, isMixed) {
|
||||||
});
|
});
|
||||||
$element.appendTo($text);
|
$element.appendTo($text);
|
||||||
}
|
}
|
||||||
|
return $element;
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderRemainingKeys() {
|
function renderRemainingKeys() {
|
||||||
|
|
|
@ -655,8 +655,8 @@ pandora.ui.infoView = function(data, isMixed) {
|
||||||
}
|
}
|
||||||
$('<span>').html(formatKey(key)).appendTo($element);
|
$('<span>').html(formatKey(key)).appendTo($element);
|
||||||
Ox.EditableContent({
|
Ox.EditableContent({
|
||||||
editable: canEdit,
|
|
||||||
clickLink: pandora.clickLink,
|
clickLink: pandora.clickLink,
|
||||||
|
editable: canEdit,
|
||||||
format: function(value) {
|
format: function(value) {
|
||||||
return formatValue(key, value);
|
return formatValue(key, value);
|
||||||
},
|
},
|
||||||
|
@ -670,10 +670,18 @@ pandora.ui.infoView = function(data, isMixed) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.appendTo($element);
|
.appendTo($element);
|
||||||
|
if (isMixed[key] && Ox.contains(listKeys, key)) {
|
||||||
|
pandora.ui.addRemoveKeyDialog({
|
||||||
|
ids: ui.listSelection,
|
||||||
|
key: key,
|
||||||
|
section: ui.section
|
||||||
|
}).appendTo($element)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$element.appendTo($text);
|
$element.appendTo($text);
|
||||||
}
|
}
|
||||||
|
return $element;
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleIconSize() {
|
function toggleIconSize() {
|
||||||
|
|
Loading…
Reference in a new issue