forked from GNUsocial/gnu-social
Fix for input tab selection
This commit is contained in:
parent
381ffc3fe8
commit
040baf291d
@ -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');
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user