From 231f519ed964e0653e1de1d11e01a4547916a5e4 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 6 Jun 2020 19:07:49 +0200 Subject: [PATCH] infopage fixes --- static/js/infoView.bakma.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/static/js/infoView.bakma.js b/static/js/infoView.bakma.js index c4acf5c..1f6134a 100644 --- a/static/js/infoView.bakma.js +++ b/static/js/infoView.bakma.js @@ -174,8 +174,7 @@ pandora.ui.infoView = function(data, isMixed) { width: iconSize + 'px', height: Math.round(iconSize / 2) + 'px' }) - .appendTo($reflection), - + .appendTo($reflection); } var $data = $('
') .addClass('OxTextPage') @@ -185,7 +184,7 @@ pandora.ui.infoView = function(data, isMixed) { top: margin + iconHeight + margin + 'px', width: iconSize + 'px', }) - .appendTo($left) + .appendTo($left), $text = Ox.Element() .addClass('OxTextPage') @@ -295,9 +294,9 @@ pandora.ui.infoView = function(data, isMixed) { .append( Ox.EditableContent({ editable: canEdit, - placeholder: formatLight(Ox._('No Title')), + placeholder: formatLight(Ox._(isMixed ? 'Mixed title' : 'No title')), tooltip: canEdit ? pandora.getEditTooltip() : '', - value: data.title + value: data.title || '' }) .css({ fontWeight: 'bold', @@ -428,7 +427,7 @@ pandora.ui.infoView = function(data, isMixed) { renderRightsLevel(); // User and Groups --------------------------------------------------------- - + if (!isMultiple) { ['user', 'groups'].forEach(function(key) { (canEdit || data[key] && data[key].length) && $('
') .css({marginBottom: '4px'}) @@ -452,9 +451,11 @@ pandora.ui.infoView = function(data, isMixed) { ) .appendTo($statistics); }); + } // Created and Modified ---------------------------------------------------- + if (!isMultiple) { ['created', 'modified'].forEach(function(key) { $('
') .css({marginBottom: '4px'}) @@ -464,6 +465,7 @@ pandora.ui.infoView = function(data, isMixed) { ) .appendTo($statistics); }); + } // Notes --------------------------------------------------------------------