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:
Ralf Becker 2015-10-27 11:44:54 +00:00
parent b01ac97b7e
commit b8f2902e80

View File

@ -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
}
}, },
/** /**