Skip to content

Commit

Permalink
Does not focus on a comment field on a post page.
Browse files Browse the repository at this point in the history
  • Loading branch information
epicmonkey committed May 22, 2015
1 parent 8dc1b31 commit 2ff412d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/js/app/fields/CreateCommentView.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ define(["app/app", "ember"], function(App, Ember) {
action: 'create',

becomeFocused: function() {
this.$().focus()
if (this.get('parentView.templateName') != 'post') {
this.$().focus()
}
}.on('didInsertElement')
})
})

0 comments on commit 2ff412d

Please sign in to comment.