can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r12030: LJSUP-11909: Fast Repost feature. Repost...

Committer: dpetrov
LJSUP-11909: Fast Repost feature. Repost button js-code.
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-05-30 11:01:42 UTC (rev 12029)
+++ trunk/cgi-bin/LJ/CleanHtml/Like.pm	2012-05-30 11:30:33 UTC (rev 12030)
@@ -72,6 +72,12 @@
 
     my $remote = LJ::get_remote();
 
+    LJ::need_res(qw{
+        templates/CleanHtml/Repost.tmpl
+        templates/CleanHtml/reposted.tmpl
+        js/jquery/jquery.lj.repostbutton.js
+    });
+
     $params->{'lj_like.repost'}     = 1;
 }
 

Modified: trunk/templates/CleanHtml/Like.tmpl
===================================================================
--- trunk/templates/CleanHtml/Like.tmpl	2012-05-30 11:01:42 UTC (rev 12029)
+++ trunk/templates/CleanHtml/Like.tmpl	2012-05-30 11:30:33 UTC (rev 12030)
@@ -1,7 +1,7 @@
 <div class="lj-like"><!--
 <tmpl_if lj_like.repost>
 <div class="lj-like-item lj-like-item-repost">
-    <a href="<tmpl_var lj_like.repost_url>?url="<tmpl_var url_ehtml>">repost</a>
+    <a href="<tmpl_var lj_like.repost_url>?url=<tmpl_var url_ehtml>" data-url="<tmpl_var url_ehtml>" >repost</a>
 </div>
 </tmpl_if>
 

Tags: can3p, dpetrov, 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