Skip to content
Snippets Groups Projects
Commit 2fd3f4ab authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Hide subscription checkbox when updating comment.

parent ee92d2a0
No related branches found
No related tags found
No related merge requests found
...@@ -40,9 +40,12 @@ Ext.define('Docs.view.comments.Form', { ...@@ -40,9 +40,12 @@ Ext.define('Docs.view.comments.Form', {
'<img class="avatar" width="25" height="25"', '<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">', ' 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>', '<div class="author">Logged in as {user.userName}</div>',
'<label class="subscribe">', '<tpl if="!updateComment">',
'Email updates? <input type="checkbox" class="subscriptionCheckbox" <tpl if="userSubscribed">checked="checked"</tpl> /><span class="sep"> | </span>', '<label class="subscribe">',
'</label>', '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>', '<a href="#" class="toggleCommentGuide">View help &#8595;</a>',
'<input type="submit" class="sub submitComment" value="{[values.updateComment ? "Update" : "Post"]} comment" />', '<input type="submit" class="sub submitComment" value="{[values.updateComment ? "Update" : "Post"]} comment" />',
'<tpl if="updateComment">', '<tpl if="updateComment">',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment