]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
...and don't hide it at all since we don't have a placeholder now
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 16 Jan 2015 11:10:13 +0000 (12:10 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 16 Jan 2015 11:10:13 +0000 (12:10 +0100)
js/util.js

index 19a9ead52462f236f7878146104846dfad35e89e..e1b26a20d926fe03f05f9c39d5ab8fccae97111b 100644 (file)
@@ -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);