Fix autoresizing after infscroll and aspect change, inflabels after aspect change
This commit is contained in:
parent
a1a53b34e9
commit
137181e07f
1 changed files with 13 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue