Committer: szhirkov
LJSUP-8857: Updating commenting formU 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> </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>