summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_html.class6
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);
}