Commit d0aaae15 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add optional JS libraries to SPITREQUIRE().

parent ea3135c1
......@@ -384,11 +384,12 @@ function SPITAJAX_ERROR($code, $msg)
echo json_encode($results);
function SPITREQUIRE($main)
function SPITREQUIRE($main, $extras = "")
global $spatrequired;
echo "<script src='js/lib/jquery-2.0.3.min.js'></script>\n";
echo $extras;
echo "<script src='js/lib/bootstrap.js'></script>\n";
echo "<script src='js/lib/require.js' data-main='js/$main'></script>\n";
$spatrequired = 1;
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