Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
1c48672e
Commit
1c48672e
authored
May 24, 2006
by
Leigh B. Stoller
Browse files
Possible fix for the glitching "active template" red box that seems to
draw in odd places sometime.
parent
049bf5b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
www/menu.php3
View file @
1c48672e
...
...
@@ -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
"
;
}
...
...
www/template_defs.php
View file @
1c48672e
...
...
@@ -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
"
;
...
...
www/template_show.php
View file @
1c48672e
...
...
@@ -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
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment