Commit 9bc93819 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) remove javascript autoloading, all occurrences of it where replaced...

(legacy) remove javascript autoloading, all occurrences of it where replaced except the index/dashboard handling.
parent a2652c87
......@@ -115,28 +115,6 @@ $pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system
<!-- Bootstrap type ahead -->
<script type="text/javascript" src="/ui/js/bootstrap3-typeahead.min.js"></script>
<?php
/*
* Find all javascript files that need to be included
* for this page ... from the arrays ... :)
* Coded by: Erik Kristensen
*/
$dir = trim(basename($_SERVER['SCRIPT_FILENAME'], '.php'));
$path = '/usr/local/www/javascript/' . $dir . '/';
if (is_dir($path)) {
if ($dh = opendir($path)) {
while (($file = readdir($dh)) !== false) {
if (is_dir($file))
continue;
echo "\t<script type=\"text/javascript\" src=\"/javascript/{$dir}/{$file}\"></script>\n";
}
closedir($dh);
}
}
?>
<script type="text/javascript">
//<![CDATA[
$( document ).ready(function() {
......
......@@ -330,6 +330,7 @@ include("head.inc");
<?php
include("fbegin.inc");
echo "\n\t<script type=\"text/javascript\" src=\"/javascript/index/ajax.js\"></script>\n";
echo $jscriptstr;
?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment