added little fix for extra long content

This commit is contained in:
Florian Staudacher 2012-03-14 01:50:24 +01:00
parent 9aa0a7ed58
commit 813b706f8e

View file

@ -47,10 +47,12 @@ app.views.Content = app.views.StreamObject.extend({
expandPost: function(evt) { expandPost: function(evt) {
var el = $(this.el).find('.collapsible'); var el = $(this.el).find('.collapsible');
el.removeClass('collapsed').addClass('opened'); el.removeClass('collapsed').addClass('opened');
el.animate({'height':el.data('orig-height')}, 550); el.animate({'height':el.data('orig-height')}, 550, function() {
el.css('height','auto');
});
$(evt.currentTarget).hide(); $(evt.currentTarget).hide();
} }
}); });
app.views.StatusMessage = app.views.Content.extend({ app.views.StatusMessage = app.views.Content.extend({