Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

[livejournal] r19922: LJSUP-8857: Updating commenting form

Committer: szhirkov
LJSUP-8857: Updating commenting form
U   trunk/templates/CommentForm/Form.tmpl
Modified: trunk/templates/CommentForm/Form.tmpl
===================================================================
--- trunk/templates/CommentForm/Form.tmpl	2011-09-01 04:25:37 UTC (rev 19921)
+++ trunk/templates/CommentForm/Form.tmpl	2011-09-01 06:46:19 UTC (rev 19922)
@@ -145,7 +145,9 @@
 
             <tr class="b-postform-submitbox">
                 <td>&nbsp;</td>
-                <td id="captcha-container"></td>
+                <td id="captcha-container">
+               		<noscript><TMPL_VAR captcha_html></noscript>
+                </td>
             </tr>
 
             <tr class="b-postform-submitbox">
@@ -243,14 +245,15 @@
         }
     </script>
 
-<script type="text/javascript" src="http://www.ljdev10.livejournal.ru/js/jquery/jquery.lj.commentator.js"></script>	
+<script type="text/javascript" src="http://www.ljdev10.livejournal.ru/js/jquery/jquery.lj.commentator.js"></script>
 
 <script type="text/javascript">
     jQuery('#postform')
         .authtype()
         .commentator({
-			captchaHtml: '<TMPL_VAR captcha_html>',
-			needCaptcha: Number('<TMPL_VAR need_captcha>')
+			publicKey: '<TMPL_VAR captcha_public>',
+			captchaContainerId: 'captcha-container',
+			needCaptcha: !!(Number('<TMPL_VAR need_captcha>'))
 		});
 </script>
 

Tags: aralot, livejournal, 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