Commit ddb47bb8 by Dányi Bence

one: vm status full-page reload replaced

parent 7bc2c99f
...@@ -4,8 +4,19 @@ ...@@ -4,8 +4,19 @@
{% block js %} {% block js %}
<script type="text/javascript"> <script type="text/javascript">
{% if booting %} {% if booting %}
setTimeout("location.reload(true);", 2000); var timer=setInterval(function(){
{% endif %} $.ajax({
type: 'GET',
dataType: 'json',
url: '/ajax/vm/status/{{ id }}',
success: function(data){
if(!data.booting){
window.location.reload();
}
}
})
},2000);
{% endif %}
</script> </script>
{% endblock %} {% endblock %}
......
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 sign in to comment