@@ -273,6 +273,7 @@ script(type='text/ng-template', id='addCommentEntryTemplate')
ng-model="state.content"
ng-keypress="handleCommentKeyPress($event);"
placeholder="Add your comment here"
+ focus-on="comment:new:open"
)
.rp-entry-actions
a.rp-entry-button(href, ng-click="cancelNewComment();")
@@ -17,6 +17,8 @@ define [
scope.startNewComment = () ->
scope.state.isAdding = true
scope.onStartNew()
+ setTimeout () ->
+ scope.$broadcast "comment:new:open"
scope.cancelNewComment = () ->
scope.state.isAdding = false