made comment edit field constant

This commit is contained in:
Sacha Greif 2012-09-29 17:19:48 +09:00
parent 6469740093
commit 13760df80b
2 changed files with 3 additions and 1 deletions

View file

@ -2,10 +2,12 @@
<div class="grid submit">
{{#with comment}}
<form class="grid-block form-horizontal">
{{#constant}}
<div class="control-group">
<label class="control-label">Comment</label>
<div class="controls" id="editor"><textarea id="body" value="" class="input-xlarge">{{body}}</textarea></div>
</div>
{{/constant}}
<div class="form-actions">
<a class="delete-link" href="/comments/deleted">Delete Comment</a>
<input type="submit" value="Submit" />

View file

@ -22,5 +22,5 @@ Meteor.startup(function () {
Meteor.setInterval(function () {
Posts.find().forEach(function (post) { updateScore(Posts, post._id); });
Comments.find().forEach(function (comment) { updateScore(Comments, comment._id); });
}, 10 * 1000);
}, 3 * 1000);
});