Commit ddb47bb8 by Dányi Bence

one: vm status full-page reload replaced

parent 7bc2c99f
......@@ -4,8 +4,19 @@
{% block js %}
<script type="text/javascript">
{% if booting %}
setTimeout("location.reload(true);", 2000);
{% endif %}
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