Commit 7c39b26e authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Disable topology button until context is loaded.

parent 22ca1780
......@@ -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;
}
......
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