Show
Ignore:
Timestamp:
05/12/08 23:12:41 (19 months ago)
Author:
bsmith
Message:

bugzid:79732 - Add captcha to comment prevew

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/MTDefaultTemplateSet/plugins/MTDefaultTemplatesSet/templates/classic-blog-simple/comment_preview.mtml

    r638 r639  
    7070                                            <div id="comment-form-name"> 
    7171                                                <label for="comment-author"><__trans phrase="Name"></label> 
    72                                                 <input id="comment-author" name="author" size="30" value="<$MTCommentAuthor encode_html="1"$>" /> 
     72                                                <input id="comment-author" name="author" size="30" value="<$MTCommentAuthor encode_html="1"$>" onfocus="mtShowCaptcha()" /> 
    7373                                            </div> 
    7474                                            <div id="comment-form-email"> 
    7575                                                <label for="comment-email"><__trans phrase="Email Address"></label> 
    76                                                 <input id="comment-email" name="email" size="30" value="<$MTCommentEmail encode_html="1"$>" /> 
     76                                                <input id="comment-email" name="email" size="30" value="<$MTCommentEmail encode_html="1"$>" onfocus="mtShowCaptcha()" /> 
    7777                                            </div> 
    7878                                            <div id="comment-form-url"> 
    7979                                                <label for="comment-url"><__trans phrase="URL"></label> 
    80                                                 <input id="comment-url" name="url" size="30" value="<$MTCommentURL encode_html="1"$>" /> 
     80                                                <input id="comment-url" name="url" size="30" value="<$MTCommentURL encode_html="1"$>" onfocus="mtShowCaptcha()" /> 
    8181                                            </div> 
    8282                                        </div> 
    8383                                        <div id="comments-open-text"> 
    8484                                            <label for="comment-text"><__trans phrase="Comments"> <MTIfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></MTIfAllowCommentHTML></label> 
    85                                             <textarea id="comment-text" name="text" rows="15" cols="50"><$MTCommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></textarea> 
     85                                            <textarea id="comment-text" name="text" rows="15" cols="50" onfocus="mtShowCaptcha()"><$MTCommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></textarea> 
    8686                                        </div> 
    8787                                        <div id="comments-open-captcha"></div>