Skip to content
GitLab
Menu
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
ea66c794
Commit
ea66c794
authored
Feb 12, 2014
by
Leigh B Stoller
Browse files
Kill obsolete function.
parent
3daad218
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/js/quickvm_sup.js
View file @
ea66c794
...
...
@@ -192,53 +192,6 @@ function ShowProfileList(selectedElement)
$xmlthing
.
done
(
callback
);
}
function
ShowProfile
(
direction
)
{
var
profile
;
var
index
;
if
(
direction
)
{
var
max
=
$
(
'
#profile_name option
'
).
length
;
console
.
info
(
max
);
index
=
ShowProfile
.
index
+
direction
;
if
(
index
<
1
)
{
index
=
max
;
}
else
if
(
index
>=
max
)
{
index
=
1
;
}
profile
=
$
(
"
#profile_name :nth(
"
+
index
+
"
)
"
).
val
();
}
else
{
// Use this static variable to track current index
index
=
$
(
"
#profile_name
"
).
prop
(
"
selectedIndex
"
);
profile
=
$
(
'
#profile_name
'
).
val
();
}
ShowProfile
.
index
=
index
;
console
.
info
(
profile
);
console
.
info
(
index
);
var
callback
=
function
(
json
)
{
console
.
info
(
json
.
value
);
var
xmlDoc
=
$
.
parseXML
(
json
.
value
.
rspec
);
var
xml
=
$
(
xmlDoc
);
var
topo
=
ConvertManifestToJSON
(
profile
,
xml
);
console
.
info
(
topo
);
ShowModal
(
"
#quickvm_topomodal
"
);
$
(
'
#showtopo_title
'
).
html
(
"
<h3>
"
+
profile
+
"
</h3>
"
);
$
(
'
#showtopo_description
'
).
html
(
json
.
value
.
description
);
maketopmap
(
"
#showtopo_div
"
,
(
$
(
"
#showtopo_dialog
"
).
outerWidth
())
-
90
,
300
,
topo
);
}
var
$xmlthing
=
CallMethod
(
"
getprofile
"
,
null
,
0
,
profile
);
$xmlthing
.
done
(
callback
);
}
function
Setsshurl
(
uuid
)
{
var
callback
=
function
(
json
)
{
...
...
@@ -1025,5 +978,6 @@ return {
Logout
:
Logout
,
ConvertManifestToJSON
:
ConvertManifestToJSON
,
maketopmap
:
maketopmap
,
CallMethod
:
CallMethod
,
};
});
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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