Don't focus comment form on 'show n more comments'

This commit is contained in:
Steffen van Bergerem 2013-06-28 19:55:42 +02:00
parent e0812c9a0e
commit 71f03544e4
2 changed files with 2 additions and 4 deletions

View file

@ -3,6 +3,7 @@
## Refactor
## Bug fixes
* Don't focus comment form on 'show n more comments' [#4265](https://github.com/diaspora/diaspora/issues/4265)
## Features

View file

@ -76,8 +76,7 @@ app.views.CommentStream = app.views.Base.extend({
expandComments: function(evt){
if(evt){ evt.preventDefault(); }
var localCommentValue = this.$("textarea").val(),
self = this;
self = this;
this.model.comments.fetch({
success : function(resp){
@ -87,8 +86,6 @@ app.views.CommentStream = app.views.Base.extend({
})
self.model.trigger("commentsExpanded", self)
self.$("textarea").val(localCommentValue).focus()
}
});
}