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

[livejournal] r17198: LJSUP-6537: The button "Tweet this" shou...

Committer: pkornilov
LJSUP-6537: The button "Tweet this" should be from Share this but not from Twitter API.
U   trunk/htdocs/js/journal.js
Modified: trunk/htdocs/js/journal.js
===================================================================
--- trunk/htdocs/js/journal.js	2010-08-25 11:32:46 UTC (rev 17197)
+++ trunk/htdocs/js/journal.js	2010-08-26 03:07:29 UTC (rev 17198)
@@ -148,18 +148,18 @@
 	if (href) {
 		if (href.indexOf('http://www.facebook.com/sharer.php') === 0) {
 			a.setAttribute('st_dest', 'facebook.com');
-			SHARETHIS_ary.findByUrl(LiveJournal.parseGetArgs(href).u).chicklet(e);
+			SHARETHIS_ary.findByUrl(decodeURIComponent(LiveJournal.parseGetArgs(href).u)).chicklet(e);
 			//else? window.open(href, 'sharer', 'toolbar=0,status=0,width=626,height=436');
 			e.preventDefault();
 		} else if (href.indexOf(Site.siteroot + '/share/twitter.bml') === 0) {
 			a.setAttribute('st_dest', 'twitter.com');
-			SHARETHIS_ary.findByUrl(LiveJournal.parseGetArgs(href).u).chicklet(e);
+			SHARETHIS_ary.findByUrl(decodeURIComponent(LiveJournal.parseGetArgs(href).u)).chicklet(e);
 			//else? window.open(href, 'sharer', 'toolbar=0,status=0,width=430,height=220');
 			e.preventDefault();
 		} else if (href.indexOf(Site.siteroot + '/tools/tellafriend.bml') === 0) {
 			a.setAttribute('st_page', 'send');
-			SHARETHIS_ary.findByUrl(LiveJournal.parseGetArgs(href).u).popup(e);
+			SHARETHIS_ary.findByUrl(decodeURIComponent(LiveJournal.parseGetArgs(href).u)).popup(e);
 			e.preventDefault();
 		}
 	}
-})
+});

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