We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 040baf29 authored by Brion Vibber's avatar Brion Vibber

Fix for input tab selection

parent 381ffc3f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment