From d318b5c10e557c447fc341747f72bf9cd73a6246 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 16 Jan 2015 12:10:13 +0100 Subject: [PATCH] ...and don't hide it at all since we don't have a placeholder now --- js/util.js | 15 --------------- 1 file changed, 15 deletions(-) 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); -- 2.39.2