Commit 51adca8a authored by Jonathon Duerig's avatar Jonathon Duerig

More fixes to no-require portal pages. Update fetchTemplate to reduce DOM tree naming conflicts.

parent 24ff720d
......@@ -115,7 +115,7 @@ echo "<div id='main-body'></div>\n";
REQUIRE_UNDERSCORE();
REQUIRE_SUP();
REQUIRE_MOMENT();
REQUIRE_IDLE_GRAPHS();
REQUIRE_IDLEGRAPHS();
SPITREQUIRE("js/adminextend.js",
"<script src='js/lib/d3.v3.js'></script>".
......
......@@ -13,7 +13,7 @@ $(function ()
window.APT_OPTIONS.initialize(sup);
mainsite = window.MAINSITE;
$('#cluster-graphs')
$('div#cluster-graphs')
.html(template({"mainsite" : mainsite}));
if (mainsite) {
......
......@@ -160,7 +160,7 @@ window.APT_OPTIONS.nagPI = function (pid) {
window.APT_OPTIONS.fetchTemplate = function (name) {
var result = '';
var element = document.getElementById(name);
var element = document.querySelector('script#' + name);
if (element)
{
result = atob(element.innerHTML);
......
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