home.js: fix condition for type prefix of titles

This commit is contained in:
rolux 2014-02-09 12:15:18 +00:00
parent 58e787efd7
commit 0cbee58499
2 changed files with 20 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;
}