Make it so input forms that don't have navigation don't accidentally get hidden. Add a "nonav" class to them.

This commit is contained in:
Zach Copley
2011-04-12 14:20:19 -07:00
parent 5454d22b79
commit 03de85ed46
4 changed files with 13 additions and 3 deletions

View File

@@ -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')