Fix mail TO field is not getting focused, and initial resize does not work

This commit is contained in:
Hadi Nategh 2015-09-16 14:20:19 +00:00
parent 078b5acf80
commit 558492d439

View File

@ -225,15 +225,16 @@ app.classes.mail = AppJS.extend(
}); });
/*Trigger compose_resizeHandler after the CKEditor is fully loaded*/ /*Trigger compose_resizeHandler after the CKEditor is fully loaded*/
jQuery('#mail-compose').on ('load',function() { jQuery('#mail-compose').on ('load',function() {
window.setTimeout(function(){that.compose_resizeHandler();}, 300); window.setTimeout(function(){
that.compose_fieldExpander();
}, 300);
}); });
//Resize compose after window resize to not getting scrollbar //Resize compose after window resize to not getting scrollbar
jQuery(window).on ('resize',function() { jQuery(window).on ('resize',function() {
that.compose_resizeHandler(); that.compose_resizeHandler();
}); });
this.compose_fieldExpander();
//Call drag_n_drop initialization for emails on compose //Call drag_n_drop initialization for emails on compose
this.init_dndCompose(); this.init_dndCompose();