can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r19403: LJSUP-9199: Link Share not working in Fr...

Committer: dpetrov
LJSUP-9199: Link Share not working in FriendsTimes
U   trunk/htdocs/js/share.js
Modified: trunk/htdocs/js/share.js
===================================================================
--- trunk/htdocs/js/share.js	2011-06-30 08:46:41 UTC (rev 19402)
+++ trunk/htdocs/js/share.js	2011-06-30 08:49:55 UTC (rev 19403)
@@ -168,6 +168,13 @@
 * @param String|Node|Jquery collection Node the popup has to be attached to. Default id a:last
 */
 window.LJShare.link = function( opts, node ) {
+	if( opts && opts.id ) {
+		var id = opts.id;
+		delete opts.id;
+		LJShare.link( opts, $( '#' + id ) );
+		return;
+	}
+
 	var a = node || $( 'a:last' ),
 		linkImg = a.find( 'img' ),
 		link = (linkImg.length) ? linkImg : a,

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