Valerii Vasin (valerii) wrote in changelog,
Valerii Vasin
valerii
changelog

[livejournal] r23369: LJSUP-14375: Replace google button in th...

Committer: vvasin
LJSUP-14375: Replace google button in the lj-like. Fix attributes reading.
U   trunk/htdocs/js/livejournal.js
Modified: trunk/htdocs/js/livejournal.js
===================================================================
--- trunk/htdocs/js/livejournal.js	2012-11-27 07:58:57 UTC (rev 23368)
+++ trunk/htdocs/js/livejournal.js	2012-11-27 08:01:34 UTC (rev 23369)
@@ -541,7 +541,7 @@
 
 		// gapi could throw errors
 		try {
-			window.gapi.plusone.render( button, { size: button.size, href: button.href } );
+			window.gapi.plusone.render( button, { size: $button.attr('size'), href: $button.attr('href') } );
 		} catch (e) {
 			console.warn(e.message);
 		}

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