Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

[livejournal] r18921: LJSUP-8586: share bubble fix

Committer: szhirkov
LJSUP-8586: share bubble fix
U   trunk/htdocs/js/share.js
Modified: trunk/htdocs/js/share.js
===================================================================
--- trunk/htdocs/js/share.js	2011-04-20 08:42:34 UTC (rev 18920)
+++ trunk/htdocs/js/share.js	2011-04-20 09:08:54 UTC (rev 18921)
@@ -168,9 +168,12 @@
 */
 window.LJShare.link = function( opts, node ) {
 	var link = node || jQuery( 'a:last' ),
+		linkImg = link.find('img'),
 		url = link.attr( 'href' ),
 		options = prepareOptions( jQuery.extend( {}, { url: url } , opts ) ),
 		dom, bubble, skipCloseEvent;
+		
+	link = (linkImg.length) ? linkImg : link;		
 
 	var links = ( opts.links ) ? opts.links : global_options.links;
 

Tags: aralot, 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