Merge pull request #167 from walle/issue_140
fix some after-comment issues
This commit is contained in:
commit
64bdb6f446
|
@ -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('');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue