Fix for input tab selection

This commit is contained in:
Brion Vibber 2011-03-09 13:05:12 -08:00
parent 381ffc3fe8
commit 040baf291d
2 changed files with 8 additions and 1 deletions

View File

@ -1280,6 +1280,13 @@ var SN = { // StatusNet
return false; 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) { switchInputFormTab: function(tag) {
// The one that's current isn't current anymore // The one that's current isn't current anymore
$('.input_form_nav_tab.current').removeClass('current'); $('.input_form_nav_tab.current').removeClass('current');

View File

@ -602,7 +602,7 @@ class Action extends HTMLOutputter // lawsuit
'class' => 'input_form_nav_tab'); 'class' => 'input_form_nav_tab');
if ($tag == 'status') { if ($tag == 'status') {
$attrs['class'] = 'current'; $attrs['class'] .= ' current';
} }
$this->elementStart('li', $attrs); $this->elementStart('li', $attrs);