From: Michael M Slusarz Date: Tue, 7 Sep 2010 18:38:56 +0000 (-0600) Subject: Make this load on dom:loaded like everything else. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e96be2d79d6468cedd78042ef99df60cfbc796c4;p=horde.git Make this load on dom:loaded like everything else. --- diff --git a/imp/compose-dimp.php b/imp/compose-dimp.php index d20fa58cd..475502557 100644 --- a/imp/compose-dimp.php +++ b/imp/compose-dimp.php @@ -207,7 +207,7 @@ $fillform_opts['focus'] = in_array($vars->type, array('forward', 'new', 'redirec if ($vars->type != 'redirect') { $compose_result['jsonload'][] = 'DimpCompose.fillForm(' . Horde_Serialize::serialize($msg, Horde_Serialize::JSON) . ',' . Horde_Serialize::serialize($header, Horde_Serialize::JSON) . ',' . Horde_Serialize::serialize($fillform_opts, Horde_Serialize::JSON) . ')'; } -Horde::addInlineScript($compose_result['jsonload'], 'load'); +Horde::addInlineScript($compose_result['jsonload'], 'dom'); $scripts = array( array('compose-base.js', 'imp'), diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index 822ca3dd9..a3d70b916 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -489,7 +489,6 @@ var DimpCompose = { // opts = auto, focus, fwd_list, noupdate, show_editor fillForm: function(msg, header, opts) { - // On IE, this can get loaded before DOM:loaded. if (!document.loaded) { this.fillForm.bind(this, msg, header, opts).defer(); return;