Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22668: LJSUP-13017: Paid Repost in update.bml a...

Committer: anazarov
LJSUP-13017: Paid Repost in update.bml and editjournal.bml
U   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;
 }
 

Tags: anazarov, livejournal, nfokz, pm
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