From: Mikael Nordfeldth Date: Fri, 16 Jan 2015 11:10:13 +0000 (+0100) Subject: ...and don't hide it at all since we don't have a placeholder now X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d318b5c10e557c447fc341747f72bf9cd73a6246;p=quix0rs-gnu-social.git ...and don't hide it at all since we don't have a placeholder now --- diff --git a/js/util.js b/js/util.js index 19a9ead524..e1b26a20d9 100644 --- a/js/util.js +++ b/js/util.js @@ -1450,21 +1450,6 @@ var SN = { // StatusNet // Make inline reply forms self-close when clicking out. $('body').on('click', function (e) { - var currentForm = $('#content .input_forms div.current'); - if (currentForm.length > 0) { - if ($('#content .input_forms').has(e.target).length == 0) { - // If all fields are empty, switch back to the placeholder. - var fields = currentForm.find('textarea, input[type=text], input[type=""]'); - var anything = false; - fields.each(function () { - anything = anything || $(this).val(); - }); - if (!anything) { - SN.U.switchInputFormTab(null); - } - } - } - var openReplies = $('li.notice-reply'); if (openReplies.length > 0) { var target = $(e.target);