Don't focus comment form on 'show n more comments'
This commit is contained in:
parent
e0812c9a0e
commit
71f03544e4
2 changed files with 2 additions and 4 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
## Refactor
|
## Refactor
|
||||||
|
|
||||||
## Bug fixes
|
## Bug fixes
|
||||||
|
* Don't focus comment form on 'show n more comments' [#4265](https://github.com/diaspora/diaspora/issues/4265)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,7 @@ app.views.CommentStream = app.views.Base.extend({
|
||||||
expandComments: function(evt){
|
expandComments: function(evt){
|
||||||
if(evt){ evt.preventDefault(); }
|
if(evt){ evt.preventDefault(); }
|
||||||
|
|
||||||
var localCommentValue = this.$("textarea").val(),
|
self = this;
|
||||||
self = this;
|
|
||||||
|
|
||||||
this.model.comments.fetch({
|
this.model.comments.fetch({
|
||||||
success : function(resp){
|
success : function(resp){
|
||||||
|
|
@ -87,8 +86,6 @@ app.views.CommentStream = app.views.Base.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
self.model.trigger("commentsExpanded", self)
|
self.model.trigger("commentsExpanded", self)
|
||||||
|
|
||||||
self.$("textarea").val(localCommentValue).focus()
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue