Skip to content

Commit

Permalink
Merge pull request #1479 from camilojimenez/handle-exceptions-in-even…
Browse files Browse the repository at this point in the history
…t-listeners

fade into the running screen before getting a response from the server
  • Loading branch information
cyberw authored Jul 13, 2020
2 parents 629988b + 467c4ba commit e775899
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions locust/static/locust.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ function setHostName(hostname) {

$('#swarm_form').submit(function(event) {
event.preventDefault();
$("body").attr("class", "hatching");
$("#start").fadeOut();
$("#status").fadeIn();
$(".box_running").fadeIn();
$("a.new_test").fadeOut();
$("a.edit_test").fadeIn();
$(".user_count").fadeIn();
$.post($(this).attr("action"), $(this).serialize(),
function(response) {
if (response.success) {
$("body").attr("class", "hatching");
$("#start").fadeOut();
$("#status").fadeIn();
$(".box_running").fadeIn();
$("a.new_test").fadeOut();
$("a.edit_test").fadeIn();
$(".user_count").fadeIn();
setHostName(response.host);
}
}
Expand Down

0 comments on commit e775899

Please sign in to comment.