Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
eaee583f
authored
Mar 14, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: fix ajax polling
parent
0c92c6fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
one/templates/show.html
+4
-2
No files found.
one/templates/show.html
View file @
eaee583f
...
...
@@ -4,14 +4,16 @@
{% block js %}
<script
type=
"text/javascript"
>
{
%
if
booting
or
state
!=
'ACTIVE'
or
i
.
waiting
==
True
%
}
{
%
if
booting
or
state
!=
'ACTIVE'
or
i
.
waiting
%
}
var
timer
=
setInterval
(
function
(){
$
.
ajax
({
type
:
'GET'
,
dataType
:
'json'
,
url
:
'{% url one.views.vm_ajax_instance_status id %}'
,
success
:
function
(
data
){
if
(
!
data
.
booting
&&
data
.
state
==
'ACTIVE'
){
if
(
!
data
.
waiting
&&
!
data
.
booting
&&
data
.
state
==
'ACTIVE'
){
window
.
location
.
reload
();
}
else
if
(
!
data
.
waiting
)
{
window
.
location
.
reload
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment