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,8 +516,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);
}, },
@ -542,6 +542,7 @@ pandora.ui.infoView = function(data, isMixed) {
}); });
$element.appendTo($text); $element.appendTo($text);
} }
return $element;
} }
function renderRemainingKeys() { function renderRemainingKeys() {

View file

@ -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() {