]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - js/util.js
Make it so input forms that don't have navigation don't accidentally get hidden....
[quix0rs-gnu-social.git] / js / util.js
index cadf730075fe6505acc53282f7141ec16f1ee9d0..80dc8378447f37a3e3503e30371244dcd92ef30f 100644 (file)
@@ -1389,6 +1389,14 @@ var SN = { // StatusNet
                 $('#input_form_nav_'+tag).addClass('current');
             }
 
+            // Don't remove 'current' if we also have the "nonav" class.
+            // An example would be the message input form. removing
+            // 'current' will cause the form to vanish from the page.
+            var nonav = $('.input_form.current.nonav');
+            if (nonav.length > 0) {
+                return;
+            }
+
            $('.input_form.current').removeClass('current');
            $('#input_form_'+tag)
                 .addClass('current')