diff --git a/static/js/home.0xdb.js b/static/js/home.0xdb.js index 546b6b2a..7377d21e 100644 --- a/static/js/home.0xdb.js +++ b/static/js/home.0xdb.js @@ -47,7 +47,12 @@ pandora.ui.home = function() { }) .appendTo(that), - $logo = $('') + $logo = Ox.Element({ + element: '', + tooltip: function() { + return Ox._('Enter {0}', [pandora.site.site.name]); + } + }) .addClass('logo') .attr({ id: 'logo', @@ -63,8 +68,8 @@ pandora.ui.home = function() { margin: 'auto', cursor: 'pointer' }) - .on({ - click: function() { + .bindEvent({ + anyclick: function() { $browseButton.triggerEvent('click'); } }) @@ -273,6 +278,7 @@ pandora.ui.home = function() { }; that.fadeOutScreen = function() { + $('.OxTooltip').remove(); that.find(':not(#logo)').hide(); $logo.animate({width: window.innerWidth + 'px'}, 500); that.animate({opacity: 0}, 500, function() { diff --git a/static/js/home.indiancinema.js b/static/js/home.indiancinema.js index 344c9296..fcb4a0e3 100644 --- a/static/js/home.indiancinema.js +++ b/static/js/home.indiancinema.js @@ -59,7 +59,9 @@ pandora.ui.home = function() { $logo = Ox.Element({ element: '', - tooltip: 'Enter ' + pandora.site.site.name + tooltip: function() { + return Ox._('Enter {0}', [pandora.site.site.name]); + } }) .attr({ id: 'logo', @@ -95,7 +97,11 @@ pandora.ui.home = function() { load: function() { $line.animate({opacity: 1}, 250, function() { $line - .options({tooltip: 'Visit Pad.ma'}) + .options({ + tooltip: function() { + return Ox._('Visit {0}', ['Pad.ma']); + } + }) .bindEvent({ anyclick: function() { window.open('/url=https://pad.ma', '_blank'); diff --git a/static/js/home.padma.js b/static/js/home.padma.js index 365faee8..6221cb25 100644 --- a/static/js/home.padma.js +++ b/static/js/home.padma.js @@ -59,7 +59,9 @@ pandora.ui.home = function() { $logo = Ox.Element({ element: '', - tooltip: Ox._('Enter {0}', [pandora.site.site.name]) + tooltip: function() { + return Ox._('Enter {0}', [pandora.site.site.name]); + } }) .attr({ id: 'logo',