forked from GNUsocial/gnu-social
When canceling out of inline reply field and there are no other replies, drop the section
This commit is contained in:
parent
e6c972ebcb
commit
db4ab2cd92
@ -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) {
|
||||
|
2
js/util.min.js
vendored
2
js/util.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user