Commit 2fd3f4ab authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Hide subscription checkbox when updating comment.

parent ee92d2a0
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -40,9 +40,12 @@ Ext.define('Docs.view.comments.Form', {
                '<img class="avatar" width="25" height="25"',
                    ' src="http://www.gravatar.com/avatar/{user.emailHash}?s=25&amp;r=PG&amp;d=http://www.sencha.com/img/avatar.png">',
                '<div class="author">Logged in as {user.userName}</div>',
                '<tpl if="!updateComment">',
                    '<label class="subscribe">',
                    'Email updates? <input type="checkbox" class="subscriptionCheckbox" <tpl if="userSubscribed">checked="checked"</tpl> /><span class="sep"> | </span>',
                        'Email updates? <input type="checkbox" class="subscriptionCheckbox" <tpl if="userSubscribed">checked="checked"</tpl> />',
                        '<span class="sep"> | </span>',
                    '</label>',
                '</tpl>',
                '<a href="#" class="toggleCommentGuide">View help &#8595;</a>',
                '<input type="submit" class="sub submitComment" value="{[values.updateComment ? "Update" : "Post"]} comment" />',
                '<tpl if="updateComment">',