From e2ceee21f7bed099b2d8af8872ecc762e4fc72cc Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 14 Jan 2011 11:47:55 -0700 Subject: [PATCH] Bug #9511: Make sure DimpCompose.onDomLoad() has run before doing other actions --- imp/js/compose-dimp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index a328885ef..237944dd6 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -523,7 +523,7 @@ var DimpCompose = { // opts = auto, focus, fwd_list, noupdate, priority, show_editor fillForm: function(msg, header, opts) { - if (!document.loaded) { + if (!document.loaded || !$('pageContainer').visible()) { this.fillForm.bind(this, msg, header, opts).defer(); return; } @@ -792,7 +792,7 @@ var DimpCompose = { return; } - if (!document.loaded) { + if (!document.loaded || !$('pageContainer').visible()) { this.resizeMsgArea.bind(this).defer(); return; } -- 2.11.0