Make this load on dom:loaded like everything else.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 7 Sep 2010 18:38:56 +0000 (12:38 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 7 Sep 2010 18:39:31 +0000 (12:39 -0600)
imp/compose-dimp.php
imp/js/compose-dimp.js

index d20fa58..4755025 100644 (file)
@@ -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'),
index 822ca3d..a3d70b9 100644 (file)
@@ -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;