mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
fix double load of UI in compose after adding attachments caused by errors in mail app.js compose_resize handler
This commit is contained in:
parent
b01ac97b7e
commit
b8f2902e80
@ -255,7 +255,7 @@ app.classes.mail = AppJS.extend(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.compose_fieldExpander();
|
that.compose_fieldExpander();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -3907,6 +3907,7 @@ app.classes.mail = AppJS.extend(
|
|||||||
// very limited resources and slow proccessor.
|
// very limited resources and slow proccessor.
|
||||||
if (egwIsMobile()) return;
|
if (egwIsMobile()) return;
|
||||||
|
|
||||||
|
try {
|
||||||
var bodyH = egw_getWindowInnerHeight();
|
var bodyH = egw_getWindowInnerHeight();
|
||||||
var textArea = this.et2.getWidgetById('mail_plaintext');
|
var textArea = this.et2.getWidgetById('mail_plaintext');
|
||||||
var $headerSec = jQuery('.mailComposeHeaderSection');
|
var $headerSec = jQuery('.mailComposeHeaderSection');
|
||||||
@ -3950,6 +3951,10 @@ app.classes.mail = AppJS.extend(
|
|||||||
textArea.set_height(bodySize - 90);
|
textArea.set_height(bodySize - 90);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch(e) {
|
||||||
|
// ignore errors causing compose to load twice
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user