Skip to content
Extraits de code Groupes Projets
Valider 71f03544 rédigé par Steffen van Bergerem's avatar Steffen van Bergerem
Parcourir les fichiers

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

parent e0812c9a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
......
......@@ -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()
}
});
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter