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

Commit 03de85ed authored by Zach Copley's avatar Zach Copley

Make it so input forms that don't have navigation don't accidentally get...

Make it so input forms that don't have navigation don't accidentally get hidden. Add a "nonav" class to them.
parent 5454d22b
......@@ -331,6 +331,8 @@ class NewnoticeAction extends Action
}
/**
* // XXX: Should we be showing the notice form with microapps here?
*
* Overload for replies or bad results
*
* We show content in the notice form if there were replies or results.
......@@ -357,7 +359,7 @@ class NewnoticeAction extends Action
'div',
array(
'id' => 'input_form_status',
'class' => 'input_form current'
'class' => 'input_form current nonav'
)
);
......
......@@ -1389,6 +1389,14 @@ var SN = { // StatusNet
$('#input_form_nav_'+tag).addClass('current');
}
// Don't remove 'current' if we also have the "nonav" class.
// An example would be the message input form. removing
// 'current' will cause the form to vanish from the page.
var nonav = $('.input_form.current.nonav');
if (nonav.length > 0) {
return;
}
$('.input_form.current').removeClass('current');
$('#input_form_'+tag)
.addClass('current')
......
This diff is collapsed.
......@@ -196,7 +196,7 @@ class MessageForm extends Form
'div',
array(
'id' => 'input_form_direct',
'class' => 'input_form current'
'class' => 'input_form current nonav'
)
);
......
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