Changeset 2313

Show
Ignore:
Timestamp:
05/13/08 01:00:53 (6 months ago)
Author:
bsmith
Message:

bugzid:79309 - Adding reply checkbox to comment preview screen

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-38/default_templates/comment_preview.mtml

    r2310 r2313  
    3737                                            <span class="byline"> 
    3838                                                <mt:IfCommentParent> 
    39                                                     <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<$MTCommentAuthorIdentity$> <span class="vcard author"><$MTCommentAuthorLink$></span>%%<mt:CommentParent><mt:CommentEntry><mt:entrypermalink></mt:CommentEntry>#comment-<$MTCommentID$></mt:CommentParent>%%<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>"> 
     39                                                    <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<$MTCommentAuthorIdentity$> <span class="vcard author"><$MTCommentAuthorLink$></span>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>"> 
    4040                                                <mt:else> 
    4141                                                    <$MTCommentAuthorIdentity$> 
    4242                                                    <span class="vcard author"><$MTCommentAuthorLink$></span> 
    4343                                                </mt:IfCommentParent> 
    44                                                 | <a href="#comment-<$MTCommentID$>"><abbr class="published" title="<$MTCommentDate format_name="iso8601"$>"><$MTCommentDate$></abbr></a> 
     44                                                | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$MTCommentDate format_name="iso8601"$>"><$MTCommentDate$></abbr></a> 
    4545                                            </span> 
    4646                                        </div> 
     
    6464                                        <input type="hidden" name="entry_id" value="<$MTEntryID$>" /> 
    6565                                        <input type="hidden" name="__lang" value="<$MTBlogLanguage$>" /> 
    66                                         <mt:IfCommentParent> 
    67                                             <input type="hidden" name="parent_id" value="<mt:CommentParent><$MTCommentID$></mt:CommentParent>"> 
    68                                         </mt:IfCommentParent> 
     66<mt:IfCommentParent> 
     67                                            <input type="hidden" name="parent_id" value="<$mt:CommentParentId$>" id="comment-parent-id"> 
     68</mt:IfCommentParent> 
    6969                                        <div id="comments-open-data"> 
    7070                                            <div id="comment-form-name"> 
     
    8181                                            </div> 
    8282                                        </div> 
     83<mt:IfCommentParent> 
     84                                        <div id="comment-form-reply"> 
     85                                            <input type="checkbox" id="comment-reply" name="comment_reply" value="<$mt:CommentParentId$>" checked="checked" onclick="mtSetCommentParentID()" /> 
     86                                            <label for="comment-reply" id="comment-reply-label"><__trans phrase="Replying to comment from [_1]" params="<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>"></label> 
     87                                        </div> 
     88</mt:IfCommentParent> 
    8389                                        <div id="comments-open-text"> 
    8490                                            <label for="comment-text"><__trans phrase="Comments"> <MTIfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></MTIfAllowCommentHTML></label> 
  • branches/release-38/default_templates/comments.mtml

    r2239 r2313  
    2020                        <span class="byline"> 
    2121                            <mt:IfCommentParent> 
    22                                 <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<$MTCommentAuthorIdentity$> <span class="vcard author"><$MTCommentAuthorLink$></span>%%<mt:CommentParent>#comment-<$MTCommentID$></mt:CommentParent>%%<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>"> 
     22                                <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<$MTCommentAuthorIdentity$> <span class="vcard author"><$MTCommentAuthorLink$></span>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>"> 
    2323                            <mt:else> 
    2424                                <$MTCommentAuthorIdentity$> 
    2525                                <span class="vcard author"><$MTCommentAuthorLink$></span> 
    2626                            </mt:IfCommentParent> 
    27                             | <a href="#comment-<$MTCommentID$>"><abbr class="published" title="<$MTCommentDate format_name="iso8601"$>"><$MTCommentDate relative="js"$></abbr></a> 
     27                            | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$MTCommentDate format_name="iso8601"$>"><$MTCommentDate relative="js"$></abbr></a> 
    2828                            <MTIfCommentsAccepted> | <$MTCommentReplyLink$></MTIfCommentsAccepted> 
    2929                        </span> 
  • branches/release-38/default_templates/javascript.mtml

    r2280 r2313  
    501501 
    502502    // Populate label with new values 
    503     var reply_text = '<__trans phrase="Replying to <a href="#comment-[_1]">comment from [_2]</a>" params="'+ parent_id +'%%'+ author +'">'; 
     503    var reply_text = '<__trans phrase="Replying to <a href="[_1]" onclick="[_2]">comment from [_3]</a>" params="#comment-'+ parent_id +'%%location.href=this.href; return false%%'+ author +'">'; 
    504504    label.innerHTML = reply_text; 
    505505