diff options
author | Thomas BrĂ¼derli | 2009-08-31 12:38:46 +0000 |
---|---|---|
committer | Thomas BrĂ¼derli | 2009-08-31 12:38:46 +0000 |
commit | c76b416bb384500b372f1dbc02ccf1c8d9ab1178 (patch) | |
tree | ca39494156e5dfbe2c38701d57027907c3067013 | |
parent | 33b954eb2ddbfebf77c5892ecb48c04613db734d (diff) | |
download | itools-c76b416bb384500b372f1dbc02ccf1c8d9ab1178.tar.gz itools-c76b416bb384500b372f1dbc02ccf1c8d9ab1178.tar.bz2 itools-c76b416bb384500b372f1dbc02ccf1c8d9ab1178.zip |
Move it_boot scripts to the bottom of the head section
-rw-r--r-- | it_html.class | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/it_html.class b/it_html.class index db66abb..536ba05 100644 --- a/it_html.class +++ b/it_html.class @@ -174,6 +174,8 @@ function head($args = array()) $js = $p['jsenv'] ? "var env = " . itjs::serialize($p['jsenv']) . ";\n" : ''; + $js .= $this->_itjs($p['jsinline'], 'inline'); + if ($p['js']) { $checksum = itjs::checksum(itjs::filenames($p['js'])); @@ -182,10 +184,8 @@ function head($args = array()) $js .= "it_boot('/itjs/" . U($p['js'], array('s' => $checksum)) . "');\n"; } - $js .= $this->_itjs($p['jsinline'], 'inline'); - if ($js) - $header .= $this->js(array($js)); + $data .= $this->js(array($js)); return tag('head', $header, $data); } |