Fix autoresizing after infscroll and aspect change, inflabels after aspect change

This commit is contained in:
Raphael Sofaer 2011-06-26 20:00:18 -07:00
parent a1a53b34e9
commit 137181e07f

View file

@ -30,6 +30,10 @@ var View = {
$('#main_stream .comments label').inFieldLabels();
});
Diaspora.widgets.subscribe("stream/reloaded", function() {
$('#main_stream .comments label').inFieldLabels();
});
/* Showing debug messages */
$(this.debug.selector)
@ -55,11 +59,15 @@ var View = {
.live("submit", this.newRequest.submit);
/* Autoexpand textareas */
$('textarea')
.autoResize({
'animate': false,
'extraSpace': 40
});
var startAutoResize = function() {
$('textarea')
.autoResize({
'animate': false,
'extraSpace': 40
});
}
Diaspora.widgets.subscribe("stream/scrolled", startAutoResize)
Diaspora.widgets.subscribe("stream/reloaded", startAutoResize)
/* Webfinger form ajaxy loading */
$(this.webFingerForm.selector)