Keep 'Status' tab current while showing the placeholder -- pretend like it's a mini version of the status notice form :D
This commit is contained in:
parent
17dc1c8703
commit
0f3af3e3b7
|
@ -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)
|
||||
|
|
2
js/util.min.js
vendored
2
js/util.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user