Added loading screen to runnow
This commit is contained in:
parent
16f72b47d4
commit
dddc0a949c
BIN
images/ajax-loader.gif
Normal file
BIN
images/ajax-loader.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.0 KiB |
@ -30,6 +30,7 @@ $(document).ready(function() {
|
||||
$('#nextrunselector').datetimepicker();
|
||||
|
||||
$("body").on("click", ".runcron", function() {
|
||||
$("#ajax_loader").show();
|
||||
fullurl = "/runnow.php?jobID=" + $(this).data("id");
|
||||
$.ajax(fullurl).done(function(data) {
|
||||
results = JSON.parse(data);
|
||||
@ -41,7 +42,8 @@ $(document).ready(function() {
|
||||
$("#resulttitle").html("Success");
|
||||
$("#resultbody").text(results["message"]);
|
||||
}
|
||||
$("#ajax_loader").hide();
|
||||
$('#resultmodal').modal('show');
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -48,4 +48,7 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id='ajax_loader' style="position: fixed; left: 50%; top: 50%; display: none;">
|
||||
<img src="/images/ajax-loader.gif">
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user