From 2ff412d7a2724f8c6c46c30ddb7e3d21c3009cb3 Mon Sep 17 00:00:00 2001 From: epicmonkey Date: Sat, 23 May 2015 00:24:13 +0300 Subject: [PATCH] Does not focus on a comment field on a post page. --- public/js/app/fields/CreateCommentView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/app/fields/CreateCommentView.js b/public/js/app/fields/CreateCommentView.js index e4260a6..b77c554 100644 --- a/public/js/app/fields/CreateCommentView.js +++ b/public/js/app/fields/CreateCommentView.js @@ -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') }) })