Commit 0f3af3e3 authored by Brion Vibber's avatar Brion Vibber

Keep 'Status' tab current while showing the placeholder -- pretend like it's a...

Keep 'Status' tab current while showing the placeholder -- pretend like it's a mini version of the status notice form :D
parent 17dc1c87
......@@ -1290,7 +1290,13 @@ var SN = { // StatusNet
switchInputFormTab: function(tag) {
// The one that's current isn't current anymore
$('.input_form_nav_tab.current').removeClass('current');
$('#input_form_nav_'+tag).addClass('current');
if (tag == 'placeholder') {
// Hack: when showing the placeholder, mark the tab
// as current for 'Status'.
$('#input_form_nav_status').addClass('current');
} else {
$('#input_form_nav_'+tag).addClass('current');
}
$('.input_form.current').removeClass('current');
$('#input_form_'+tag)
......
This diff is collapsed.
......@@ -601,6 +601,12 @@ class Action extends HTMLOutputter // lawsuit
$attrs = array('id' => 'input_form_nav_'.$tag,
'class' => 'input_form_nav_tab');
if ($tag == 'status') {
// We're actually showing the placeholder form,
// but we special-case the 'Status' tab as if
// it were a small version of it.
$attrs['class'] .= ' current';
}
$this->elementStart('li', $attrs);
$this->element('a',
......
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