Commit 1c48672e authored by Leigh B. Stoller's avatar Leigh B. Stoller

Possible fix for the glitching "active template" red box that seems to

draw in odd places sometime.
parent 049bf5b0
......@@ -11,6 +11,7 @@ $drewheader = 0;
$noheaders = 0;
$autorefresh = 0;
$currentusage = 1;
$bodyclosestring = "";
#
# This has to be set so we can spit out http or https paths properly!
......@@ -889,7 +890,7 @@ function ENDPAGE() {
#
function PAGEFOOTER($view = NULL) {
global $TBDOCBASE, $TBMAILADDR, $THISHOMEBASE, $BASEPATH;
global $TBMAINSITE, $SSL_PROTOCOL;
global $TBMAINSITE, $SSL_PROTOCOL, $bodyclosestring;
if (!$view) {
$view = GETUSERVIEW();
......@@ -938,6 +939,8 @@ function PAGEFOOTER($view = NULL) {
# This has to be after all the tooltip definitions.
echo "<script type='text/javascript' src='js/wz_tooltip.js'></script>";
echo $bodyclosestring;
echo "\n";
echo "</body></html>\n";
}
......
......@@ -563,6 +563,8 @@ class Template
# Dump the image map for a template to the output.
#
function ShowGraph() {
global $bodyclosestring;
$guid = $this->guid();
$vers = $this->vers();
......@@ -596,17 +598,13 @@ class Template
echo "</div>\n";
echo "</div>\n";
echo "<script type='text/javascript'>
<!--
SET_DHTML(\"D$guid\");
//-->
</script>\n";
echo "</center>\n";
echo "<script type='text/javascript' src='template_sup.js'></script>";
echo "\n";
echo "<script type='text/javascript'>
#
# This has to happen ...
#
$bodyclosestring =
"<script type='text/javascript'>
SET_DHTML(\"D$guid\");
SetActiveTemplate(\"G$guid\", \"CurrentTemplate\",
\"Tarea${vers}\");
</script>\n";
......
......@@ -213,6 +213,10 @@ echo "</tr>\n";
echo "</table>\n";
echo "</center>\n";
echo "<script type='text/javascript' language='javascript' ".
" src='template_sup.js'>\n";
echo "</script>\n";
#
# Standard Testbed Footer
#
......
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