add multi value add/remove to items

This commit is contained in:
j 2023-07-27 15:06:43 +02:00
parent 7cc5ae8d65
commit d4df903f82
2 changed files with 12 additions and 3 deletions

View File

@ -516,12 +516,12 @@ pandora.ui.infoView = function(data, isMixed) {
}
$('<span>').html(formatKey(key)).appendTo($element);
Ox.EditableContent({
editable: canEdit,
clickLink: pandora.clickLink,
editable: canEdit,
format: function(value) {
return formatValue(key, value);
},
placeholder: formatLight(Ox._( isMixed[key] ? 'mixed' : 'unknown')),
placeholder: formatLight(Ox._(isMixed[key] ? 'mixed' : 'unknown')),
tooltip: canEdit ? pandora.getEditTooltip() : '',
value: getValue(key, data[key])
})
@ -542,6 +542,7 @@ pandora.ui.infoView = function(data, isMixed) {
});
$element.appendTo($text);
}
return $element;
}
function renderRemainingKeys() {

View File

@ -655,8 +655,8 @@ pandora.ui.infoView = function(data, isMixed) {
}
$('<span>').html(formatKey(key)).appendTo($element);
Ox.EditableContent({
editable: canEdit,
clickLink: pandora.clickLink,
editable: canEdit,
format: function(value) {
return formatValue(key, value);
},
@ -670,10 +670,18 @@ pandora.ui.infoView = function(data, isMixed) {
}
})
.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);
}
return $element;
}
function toggleIconSize() {