holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12776: LJSUP-13966: Repost button doesn't work ...

Committer: akanashin
LJSUP-13966: Repost button doesn't work on Omega
U   trunk/cgi-bin/LJ/CleanHtml/Like.pm
U   trunk/templates/CleanHtml/Like.tmpl
Modified: trunk/cgi-bin/LJ/CleanHtml/Like.pm
===================================================================
--- trunk/cgi-bin/LJ/CleanHtml/Like.pm	2012-10-17 11:22:15 UTC (rev 12775)
+++ trunk/cgi-bin/LJ/CleanHtml/Like.pm	2012-10-17 11:58:35 UTC (rev 12776)
@@ -205,7 +205,8 @@
     my $entry_url = $self->{'entry_url'};
     my $entry_url_ehtml = LJ::ehtml($entry_url);
 
-    $params->{'url_ehtml'} = LJ::eurl($entry_url_ehtml);
+    $params->{'url_ehtml'} = $entry_url_ehtml;
+    $params->{'url_eurl_ehtml'} = LJ::eurl($entry_url_ehtml);
     $params->{'site_root'} = $LJ::SITEROOT;
 
     foreach my $button (@$buttons) {

Modified: trunk/templates/CleanHtml/Like.tmpl
===================================================================
--- trunk/templates/CleanHtml/Like.tmpl	2012-10-17 11:22:15 UTC (rev 12775)
+++ trunk/templates/CleanHtml/Like.tmpl	2012-10-17 11:58:35 UTC (rev 12776)
@@ -29,13 +29,13 @@
 
 <tmpl_if lj_like.surfinbird>
 <div class="lj-like-item lj-like-item-surfinbird">
-<a target="_blank" class="surfinbird__like_button" data-text="<TMPL_VAR expr="ml('ljlike.surfingbird')">" data-url="<tmpl_var url_ehtml>" href="http://surfingbird.ru/share">Серф</a>
+<a target="_blank" class="surfinbird__like_button" data-text="<TMPL_VAR expr="ml('ljlike.surfingbird')">" data-url="<tmpl_var url_eurl_ehtml>" href="http://surfingbird.ru/share">Серф</a>
 </div>
 </tmpl_if>
 
 <tmpl_if lj_like.tumblr>
 <div class="lj-like-item lj-like-item-tumblr">
-<a class="tumblr-share-button" target="_blank" data-url="<tmpl_var url_ehtml>" data-title="<TMPL_IF title_ehtml><tmpl_var title_ehtml><TMPL_ELSE><TMPL_VAR expr="ml('widget.officialjournals.nosubject')"></TMPL_IF>" href="http://tumblr.com/share/link" style="display:inline-block; text-indent:-9999px; overflow:hidden; width:61px; height:20px; background:url('http://platform.tumblr.com/v1/share_2.png') top left no-repeat transparent;" ><TMPL_VAR expr="ml('ljlike.tumblr')"></a>
+<a class="tumblr-share-button" target="_blank" data-url="<tmpl_var url_eurl_ehtml>" data-title="<TMPL_IF title_ehtml><tmpl_var title_ehtml><TMPL_ELSE><TMPL_VAR expr="ml('widget.officialjournals.nosubject')"></TMPL_IF>" href="http://tumblr.com/share/link" style="display:inline-block; text-indent:-9999px; overflow:hidden; width:61px; height:20px; background:url('http://platform.tumblr.com/v1/share_2.png') top left no-repeat transparent;" ><TMPL_VAR expr="ml('ljlike.tumblr')"></a>
 </div>
 </tmpl_if>
 

Tags: akanashin, holyandrew, ljcom, pm, tmpl
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