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>