can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r19257: LJSUP-8984: Sort by poster - contextual ...

Committer: dpetrov
LJSUP-8984: Sort by poster - contextual popup
U   trunk/htdocs/js/contextualhover.js
Modified: trunk/htdocs/js/contextualhover.js
===================================================================
--- trunk/htdocs/js/contextualhover.js	2011-06-08 07:56:43 UTC (rev 19256)
+++ trunk/htdocs/js/contextualhover.js	2011-06-08 08:29:55 UTC (rev 19257)
@@ -523,6 +523,17 @@
 		.appendTo(content);
 		content.appendChild(document.createElement('br'));
 	}
+
+	if( !data.is_comm && Site.current_journal && ( "is_comm" in Site.current_journal ) 
+				&& Site.current_journal.is_comm === "1" ) {
+		jQuery( '<a/>', {
+			href: Site.current_journal.url_journal + '/?poster=' + data.username,
+			text: ( Site.remoteUser === data.username ) ? ( data.ml_filter_by_poster_me || 'Filter community by me' ) :
+							( data.ml_filter_by_poster || 'Filter community by poster' )
+		} )
+		.appendTo(content);
+		content.appendChild(document.createElement('br'));
+	}
 	
 	// wishlist
 	if ((data.is_person || data.is_comm) && !data.is_requester && data.wishlist_url) {

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