Commit 3ff0e830 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

display a message if no connection to jflow server

parent 8a1682f6
......@@ -547,7 +547,13 @@ $(function () {
url: 'http://localhost:8080/get_available_workflows?callback=?',
dataType: "json",
timeout: 2000,
error: function (xhr, ajaxOptions, thrownError) {},
error: function (xhr, ajaxOptions, thrownError) {
$('#setAndRunModalLabel').html("Error");
$('#setAndRunModalBody').html('<div class="tx-nG6-pi1-error">An error occured when trying to connect to the jflow server!</div>');
$("#reset_workflow").hide();
$("#run_workflow").hide();
$('#setAndRunModal').modal();
},
success: function(data) {
var workflow = {};
for (var i in data) {
......@@ -564,6 +570,8 @@ $(function () {
location.assign(location.href);
}
});
$("#reset_workflow").show();
$("#run_workflow").show();
$('#setAndRunModal').modal();
}
});
......
Supports Markdown
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