diff --git a/js/util.js b/js/util.js index 6bba34fae66bf97414b9d5fb0a18437a94c89000..6bd5d668a9cdddc07d8bfd76f89b0d4ad78c5d04 100644 --- a/js/util.js +++ b/js/util.js @@ -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'); diff --git a/lib/action.php b/lib/action.php index 2b237118af8be006f934d2c82e6b3acfc1c2d921..0ba4b8b8ff1dbb03c594d0711f48c0ced2466ec6 100644 --- a/lib/action.php +++ b/lib/action.php @@ -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);