Commit 6147c3be authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor fixes.

parent 0e5e57e6
......@@ -696,7 +696,7 @@ class Template
"where pid='$pid' and eid='$eid'");
if (!mysql_num_rows($query_result)) {
return array(1.15, 1);
return array(1.25, 1);
}
$row = mysql_fetch_array($query_result);
$zoom = $row['zoom'];
......
......@@ -178,7 +178,7 @@ function Show($which, $zoom, $detail)
#
# Sajax callback for operating on the template graph.
#
function GraphChange($action)
function GraphChange($action, $no_output = 0)
{
global $pid, $gid, $eid, $uid, $guid, $TBSUEXEC_PATH, $TBADMINGROUP;
global $template;
......@@ -188,7 +188,7 @@ function GraphChange($action)
TBGroupUnixInfo($pid, $gid, $unix_gid, $unix_name);
$reqarg = "-a ";
$versarg = "$version";
$versarg = $template->vers();
if ($action == "zoomout" || $action == "zoomin") {
$optarg = "";
......@@ -247,6 +247,13 @@ function GraphChange($action)
#
sajax_handle_client_request();
#
# Active/Inactive is a plain menu link.
#
if (isset($action) && ($action == "activate" || $action == "inactivate")) {
GraphChange($action, 1);
}
#
# Standard Testbed Header after argument checking.
#
......
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