home.js: fix condition for type prefix of titles
This commit is contained in:
parent
58e787efd7
commit
0cbee58499
2 changed files with 20 additions and 4 deletions
|
@ -534,7 +534,11 @@ pandora.ui.home = function() {
|
|||
.appendTo($featuresContent);
|
||||
$featureIcon[i] = Ox.Element({
|
||||
element: '<img>',
|
||||
tooltip: (lists && texts ? Ox._(Ox.toTitleCase(item.type)) + ': ' : '')
|
||||
tooltip: (
|
||||
(lists && edits) || (lists && texts) || (edits && texts)
|
||||
? Ox._(Ox.toTitleCase(item.type)) + ': '
|
||||
: ''
|
||||
)
|
||||
+ Ox.encodeHTMLEntities(item.name)
|
||||
})
|
||||
.attr({
|
||||
|
@ -591,7 +595,11 @@ pandora.ui.home = function() {
|
|||
|
||||
function getHTML(item) {
|
||||
return '<b>'
|
||||
+ (lists && texts ? Ox._(Ox.toTitleCase(item.type)) + ': ' : '')
|
||||
+ (
|
||||
(lists && edits) || (lists && texts) || (edits && texts)
|
||||
? Ox._(Ox.toTitleCase(item.type)) + ': '
|
||||
: ''
|
||||
)
|
||||
+ Ox.encodeHTMLEntities(item.name) + '</b><br><br>'
|
||||
+ item.description;
|
||||
}
|
||||
|
|
|
@ -506,7 +506,11 @@ pandora.ui.home = function() {
|
|||
.appendTo($featuresContent);
|
||||
$featureIcon[i] = Ox.Element({
|
||||
element: '<img>',
|
||||
tooltip: (lists && texts ? Ox._(Ox.toTitleCase(item.type)) + ': ' : '')
|
||||
tooltip: (
|
||||
(lists && edits) || (lists && texts) || (edits && texts)
|
||||
? Ox._(Ox.toTitleCase(item.type)) + ': '
|
||||
: ''
|
||||
)
|
||||
+ Ox.encodeHTMLEntities(item.name)
|
||||
})
|
||||
.attr({
|
||||
|
@ -563,7 +567,11 @@ pandora.ui.home = function() {
|
|||
|
||||
function getHTML(item) {
|
||||
return '<b>'
|
||||
+ (lists && texts ? Ox._(Ox.toTitleCase(item.type)) + ': ' : '')
|
||||
+ (
|
||||
(lists && edits) || (lists && texts) || (edits && texts)
|
||||
? Ox._(Ox.toTitleCase(item.type)) + ': '
|
||||
: ''
|
||||
)
|
||||
+ Ox.encodeHTMLEntities(item.name) + '</b><br><br>'
|
||||
+ item.description;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue