can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r20013: OPSC-363: Update userheads popup menu JS...

Committer: dpetrov
OPSC-363: Update userheads popup menu JS handler
U   trunk/htdocs/js/contextualhover.js
Modified: trunk/htdocs/js/contextualhover.js
===================================================================
--- trunk/htdocs/js/contextualhover.js	2011-09-12 00:59:35 UTC (rev 20012)
+++ trunk/htdocs/js/contextualhover.js	2011-09-12 01:46:03 UTC (rev 20013)
@@ -472,11 +472,11 @@
 	
 	// buy the same userhead
 	if (data.is_logged_in && data.is_person && ! data.is_requester && data.is_custom_userhead) {
-		jQuery('<a/>', {
-			href: data.url_buy_userhead,
-			text: data.ml_buy_same_userhead
-		})
-		.appendTo(content);
+		jQuery('<a/>', (data.is_app_userhead) ?
+				{ href: data.url_userhead_install, text: data.ml_userhead_install } :
+				{ href: data.url_buy_userhead, text: data.ml_buy_same_userhead }
+		).appendTo(content);
+
 		content.appendChild(document.createElement('br'));
 	}
 	

Tags: can3p, js, livejournal
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments