diff --git a/static/js/home.indiancinema.js b/static/js/home.indiancinema.js index aea9f0ba..bc6c9510 100644 --- a/static/js/home.indiancinema.js +++ b/static/js/home.indiancinema.js @@ -534,7 +534,11 @@ pandora.ui.home = function() { .appendTo($featuresContent); $featureIcon[i] = Ox.Element({ element: '', - 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 '' - + (lists && texts ? Ox._(Ox.toTitleCase(item.type)) + ': ' : '') + + ( + (lists && edits) || (lists && texts) || (edits && texts) + ? Ox._(Ox.toTitleCase(item.type)) + ': ' + : '' + ) + Ox.encodeHTMLEntities(item.name) + '

' + item.description; } diff --git a/static/js/home.padma.js b/static/js/home.padma.js index cf508540..41dee30d 100644 --- a/static/js/home.padma.js +++ b/static/js/home.padma.js @@ -506,7 +506,11 @@ pandora.ui.home = function() { .appendTo($featuresContent); $featureIcon[i] = Ox.Element({ element: '', - 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 '' - + (lists && texts ? Ox._(Ox.toTitleCase(item.type)) + ': ' : '') + + ( + (lists && edits) || (lists && texts) || (edits && texts) + ? Ox._(Ox.toTitleCase(item.type)) + ': ' + : '' + ) + Ox.encodeHTMLEntities(item.name) + '

' + item.description; }