Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[livejournal] r17910: LJSUP-7544: There is not link on wishlis...

Committer: pkornilov
LJSUP-7544: There is not link on wishlist in contextual pop-up.
U   trunk/htdocs/js/contextualhover.js
Modified: trunk/htdocs/js/contextualhover.js
===================================================================
--- trunk/htdocs/js/contextualhover.js	2010-12-13 05:43:33 UTC (rev 17909)
+++ trunk/htdocs/js/contextualhover.js	2010-12-13 07:08:50 UTC (rev 17910)
@@ -506,7 +506,7 @@
 		content.appendChild(document.createElement('br'));
 	}
 	
-	// vgift;
+	// vgift
 	if ((data.is_person || data.is_comm) && !data.is_requester && data.can_receive_vgifts) {
 		jQuery('<a/>', {
 			href: Site.siteroot + '/shop/vgift.bml?to=' + data.username,
@@ -516,6 +516,16 @@
 		content.appendChild(document.createElement('br'));
 	}
 	
+	// wishlist
+	if (data.is_person && !data.is_requester) {
+		jQuery('<a/>', {
+			href:data.wishlist_url,
+			text: data.ml_view_wishlist
+		})
+		.appendTo(content);
+		content.appendChild(document.createElement('br'));
+	}
+	
 	if (data.is_logged_in && !data.is_requester && !data.is_comm && !data.is_syndicated) {
 		// ban/unban
 		jQuery('<a/>', {

Tags: js, livejournal, lusever
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