Revision 4e3a54f3 ui/templates/networks.html

b/ui/templates/networks.html
522 522
    // load wizard
523 523
    $("#add-machines-wizard").show();
524 524
    $("a#add-machines-overlay").data('overlay').load();
525
    // enable submit button
526
    $("#add-machines-wizard #add-server-add").removeAttr('disabled');
525 527
    return false;
526 528
});
527 529

  
......
584 586
        $.each(selections, function(i, selection) {
585 587
            serverIDs.push(selection.name);
586 588
        });
589
        // disable submit button to prevent multiple calls
590
        $(this).attr("disabled", true);
591
        // load progress bar
587 592
        $(this).text('');
588
        add_server_to_network(networkID, serverIDs);
589 593
        $(this).html('<img src="static/icons/indicators/medium/horizontal-progress.gif"></img>');
594
        // make the call
595
        add_server_to_network(networkID, serverIDs);
590 596
    }
591 597
    return false;
592 598
});

Also available in: Unified diff