Merge pull request #167 from walle/issue_140

fix some after-comment issues
This commit is contained in:
joshua stein 2014-08-17 19:07:46 -05:00
commit 64bdb6f446
2 changed files with 7 additions and 5 deletions

View file

@ -171,7 +171,12 @@ var _Lobsters = Class.extend({
postComment: function(form) {
$.post($(form).attr("action"), $(form).serializeArray(), function(data) {
$(form).closest('.comment').replaceWith($.parseHTML(data));
if ($(form).find('#parent_comment_short_id').length) {
$(form).closest('.comment').replaceWith($.parseHTML(data));
} else {
$(form).closest('.comment').after($.parseHTML(data));
$(form).find('textarea').val('');
}
});
},

View file

@ -731,12 +731,9 @@ div#story_box div.markdown_help_toggler {
width: 610px;
}
div.comment_form_container {
max-width: 700px;
}
div.comment_form_container form {
margin-left: 15px;
max-width: 700px;
}
ul.root {