Commit ddb47bb8 by Dányi Bence

one: vm status full-page reload replaced

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