projects
/
adhocweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78ac95a
)
Fix disconnection on leaving the page
author
Florian Zeitz
<florob@babelmonkeys.de>
Wed, 1 Dec 2010 19:34:13 +0000
(20:34 +0100)
committer
Florian Zeitz
<florob@babelmonkeys.de>
Wed, 1 Dec 2010 19:34:13 +0000
(20:34 +0100)
js/main.js
patch
|
blob
|
history
diff --git
a/js/main.js
b/js/main.js
index 9e09865c1e5200aa38e21690a77b948444cb0f9c..188dfc762eda4af93e1ac45659c9671bf8046d5f 100644
(file)
--- a/
js/main.js
+++ b/
js/main.js
@@
-339,9
+339,8
@@
$(document).ready(function () {
});
});
-
on
unload = function() {
+
window.onunload = window.onbefore
unload = function() {
if (connection) {
connection.disconnect();
}
}
-