We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 4e1ce4e5 authored by Brion Vibber's avatar Brion Vibber

Remove inline reply forms on click-away if they have initial text as well as...

Remove inline reply forms on click-away if they have initial text as well as if empty (plus whitespace stripping)
parent acca8a24
......@@ -1321,8 +1321,10 @@ var SN = { // StatusNet
// clicked outside of one...
openReplies.each(function() {
var replyItem = $(this);
var textarea = replyItem.find('.notice_data-text:first');
var cur = $.trim(textarea.val());
// Only close if there's been no edit.
if (replyItem.find('.notice_data-text:first').val() == '') {
if (cur == '' || cur == textarea.data('initialText')) {
var parentNotice = replyItem.closest('li.notice');
replyItem.remove();
SN.U.NoticeInlineReplyPlaceholder(parentNotice);
......
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