From cd4c7b62a1655171cab30ef61d4f836325efa140 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 20 Feb 2013 01:15:37 +0530 Subject: [PATCH] indiancine.ma home screen: make byline clickable; update pad.ma home screen --- static/js/pandora/home.indiancinema.js | 16 ++++++++++++---- static/js/pandora/home.padma.js | 4 ++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/static/js/pandora/home.indiancinema.js b/static/js/pandora/home.indiancinema.js index 514bc3ba..369686f1 100644 --- a/static/js/pandora/home.indiancinema.js +++ b/static/js/pandora/home.indiancinema.js @@ -68,13 +68,13 @@ pandora.ui.home = function() { margin: '0 auto 0 auto', cursor: 'pointer' }) - .on({ - click: function() { + .bindEvent({ + anyclick: function() { $browseButton.triggerEvent('click'); } }) .appendTo($box), - $line = $('') + $line = Ox.Element('') .attr({src: '/static/png/line.indiancinema.png'}) .css({ position: 'absolute', @@ -88,7 +88,15 @@ pandora.ui.home = function() { }) .one({ load: function() { - $line.animate({opacity: 1}, 250); + $line.animate({opacity: 1}, 250, function() { + $line + .options({tooltip: 'Visit Pad.ma'}) + .bindEvent({ + anyclick: function() { + document.location.href = '/url=https://pad.ma'; + } + }); + }); } }) .appendTo($box), diff --git a/static/js/pandora/home.padma.js b/static/js/pandora/home.padma.js index 707a9480..2cffcdf4 100644 --- a/static/js/pandora/home.padma.js +++ b/static/js/pandora/home.padma.js @@ -68,8 +68,8 @@ pandora.ui.home = function() { margin: '0 auto 0 auto', cursor: 'pointer' }) - .on({ - click: function() { + .bindEvent({ + anyclick: function() { $browseButton.triggerEvent('click'); } })