infopage fixes
This commit is contained in:
parent
05d5ce213f
commit
231f519ed9
1 changed files with 8 additions and 6 deletions
|
@ -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 = $('<div>')
|
||||
.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) && $('<div>')
|
||||
.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) {
|
||||
$('<div>')
|
||||
.css({marginBottom: '4px'})
|
||||
|
@ -464,6 +465,7 @@ pandora.ui.infoView = function(data, isMixed) {
|
|||
)
|
||||
.appendTo($statistics);
|
||||
});
|
||||
}
|
||||
|
||||
// Notes --------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue