]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for input tab selection
authorBrion Vibber <brion@pobox.com>
Wed, 9 Mar 2011 21:05:12 +0000 (13:05 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 9 Mar 2011 21:05:12 +0000 (13:05 -0800)
js/util.js
lib/action.php

index 6bba34fae66bf97414b9d5fb0a18437a94c89000..6bd5d668a9cdddc07d8bfd76f89b0d4ad78c5d04 100644 (file)
@@ -1280,6 +1280,13 @@ var SN = { // StatusNet
             return false;
         },
 
+        /**
+         * Switch to another active input sub-form.
+         * This will hide the current form (if any), show the new one, and
+         * update the input type tab selection state.
+         *
+         * @param {String} tag
+         */
        switchInputFormTab: function(tag) {
            // The one that's current isn't current anymore
            $('.input_form_nav_tab.current').removeClass('current');
index 2b237118af8be006f934d2c82e6b3acfc1c2d921..0ba4b8b8ff1dbb03c594d0711f48c0ced2466ec6 100644 (file)
@@ -602,7 +602,7 @@ class Action extends HTMLOutputter // lawsuit
                                'class' => 'input_form_nav_tab');
 
                 if ($tag == 'status') {
-                    $attrs['class'] = 'current';
+                    $attrs['class'] .= ' current';
                 }
 
                 $this->elementStart('li', $attrs);