Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
c0bec585
Commit
c0bec585
authored
Nov 20, 2012
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing status change notification when the server is stopped on longpolling and jsonp modes
parent
8a8a139a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
pushstream.js
misc/js/pushstream.js
+4
-2
No files found.
misc/js/pushstream.js
View file @
c0bec585
...
...
@@ -196,7 +196,7 @@
if
(
xhr
.
status
===
200
)
{
if
(
settings
.
success
)
{
settings
.
success
(
xhr
.
responseText
);
}
}
else
{
if
(
settings
.
error
)
{
settings
.
error
(
xhr
.
status
||
304
);
}
if
(
settings
.
error
)
{
settings
.
error
(
xhr
.
status
);
}
}
}
};
...
...
@@ -259,10 +259,12 @@
var
head
=
document
.
head
||
document
.
getElementsByTagName
(
"
head
"
)[
0
];
var
script
=
document
.
createElement
(
"
script
"
);
var
startTime
=
new
Date
().
getTime
();
var
onerror
=
function
()
{
Ajax
.
clear
(
settings
);
settings
.
error
(
304
);
var
endTime
=
new
Date
().
getTime
();
settings
.
error
(((
endTime
-
startTime
)
>
settings
.
timeout
/
2
)
?
304
:
0
);
};
var
onload
=
function
()
{
...
...
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