Merge pull request #4267 from svbergerem/4265-show-more-comments-behaviour

Don't focus comment form on 'show n more comments'
This commit is contained in:
Jonne Haß 2013-06-29 01:01:50 -07:00
commit bcd3ceac15
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()
}
});
}