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

This commit is contained in:
Brion Vibber 2011-03-01 14:26:11 -08:00
parent e6c972ebcb
commit db4ab2cd92
2 changed files with 6 additions and 2 deletions

View File

@ -622,7 +622,11 @@ var SN = { // StatusNet
if (txt == '' || txt == textarea.data('initialText')) {
// Nothing to say? Begone!
replyItem.remove();
if (list.find('li').length > 0) {
SN.U.NoticeInlineReplyPlaceholder(parentNotice);
} else {
list.remove();
}
}
});
replyForm.submit(function(event) {

2
js/util.min.js vendored

File diff suppressed because one or more lines are too long