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-stable
Commits
7c39b26e
Commit
7c39b26e
authored
Dec 09, 2014
by
Jonathon Duerig
Browse files
Disable topology button until context is loaded.
parent
22ca1780
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/js/JacksEditor.js
View file @
7c39b26e
...
...
@@ -40,11 +40,13 @@ function (_, editModalString)
var
contextUrl
=
'
https://www.emulab.net/protogeni/jacks-context/cloudlab-utah.json
'
;
if
(
window
.
ISCLOUD
)
{
$
(
'
#edit_topo_modal_button
'
).
prop
(
'
disabled
'
,
true
);
$
.
get
(
contextUrl
).
then
(
contextReady
,
contextFail
);
}
function
contextReady
(
data
)
{
$
(
'
#edit_topo_modal_button
'
).
prop
(
'
disabled
'
,
false
);
context
=
data
;
}
...
...
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