From: Michael M Slusarz Date: Fri, 14 Jan 2011 18:47:55 +0000 (-0700) Subject: Bug #9511: Make sure DimpCompose.onDomLoad() has run before doing other actions X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e2ceee21f7bed099b2d8af8872ecc762e4fc72cc;p=horde.git Bug #9511: Make sure DimpCompose.onDomLoad() has run before doing other actions --- 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; }