Fixed post editing appearance
This commit is contained in:
parent
a869c1da1e
commit
37cc858821
1 changed files with 8 additions and 1 deletions
|
@ -29,7 +29,14 @@ $(function()
|
||||||
aDom.removeClass('inactive');
|
aDom.removeClass('inactive');
|
||||||
|
|
||||||
if (!$(formDom).is(':visible'))
|
if (!$(formDom).is(':visible'))
|
||||||
formDom.parents('.unit').show().css('height', formDom.height()).hide().slideDown();
|
{
|
||||||
|
formDom.parents('.unit')
|
||||||
|
.show().css('height', formDom.height()).hide()
|
||||||
|
.slideDown(function()
|
||||||
|
{
|
||||||
|
$(this).css('height', 'auto');
|
||||||
|
});
|
||||||
|
}
|
||||||
$('html, body').animate({ scrollTop: $(formDom).offset().top + 'px' }, 'fast');
|
$('html, body').animate({ scrollTop: $(formDom).offset().top + 'px' }, 'fast');
|
||||||
formDom.find('input[type=text]:visible:eq(0)').focus();
|
formDom.find('input[type=text]:visible:eq(0)').focus();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue