Commit db4ab2cd authored by Brion Vibber's avatar Brion Vibber

When canceling out of inline reply field and there are no other replies, drop the section

parent e6c972eb
......@@ -622,7 +622,11 @@ var SN = { // StatusNet
if (txt == '' || txt == textarea.data('initialText')) {
// Nothing to say? Begone!
replyItem.remove();
SN.U.NoticeInlineReplyPlaceholder(parentNotice);
if (list.find('li').length > 0) {
SN.U.NoticeInlineReplyPlaceholder(parentNotice);
} else {
list.remove();
}
}
});
replyForm.submit(function(event) {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment