Committer: anazarov
LJSUP-13017: Paid Repost in update.bml and editjournal.bmlU trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/EntryForm.pm 2012-08-16 10:07:51 UTC (rev 22667) +++ trunk/cgi-bin/LJ/Widget/EntryForm.pm 2012-08-16 10:26:57 UTC (rev 22668) @@ -1839,6 +1839,17 @@ JS } + if (LJ::is_enabled('paid_repost')) { + LJ::need_res('js/jquery/post/jquery.lj.paidRepost.js'); + $out .= <<JS +<script type="text/javascript"> + jQuery(function () { + jQuery('#entryform-paid_repost-wrapper').paidRepost(); + }); +</script> +JS + } + return $out; }