From c76b416bb384500b372f1dbc02ccf1c8d9ab1178 Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Mon, 31 Aug 2009 12:38:46 +0000 Subject: Move it_boot scripts to the bottom of the head section --- it_html.class | 6 +++--- 1 file 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); } -- cgit v1.2.3