diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php index 2aca0c378..cbf668df8 100644 --- a/program/include/rcmail_output_html.php +++ b/program/include/rcmail_output_html.php @@ -1852,7 +1852,7 @@ EOF; // put docready commands into page footer if (!empty($this->scripts['docready'])) { - $this->add_script('$(document).ready(function(){ ' . $this->scripts['docready'] . "\n});", 'foot'); + $this->add_script('$(function(){ ' . $this->scripts['docready'] . "\n});", 'foot'); } // replace specialchars in content