]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/roomchat_unload.html
Revert "serv_rssclient.c: style update"
[citadel.git] / webcit / static / roomchat_unload.html
diff --git a/webcit/static/roomchat_unload.html b/webcit/static/roomchat_unload.html
new file mode 100644 (file)
index 0000000..aa613c4
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+  "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+  <head>
+    <title>End Chat</title>
+      <script type="text/javascript" src="prototype.js"></script>
+      <script type="text/javascript">
+        function do_roomchat_unload() {
+          new Ajax.Request(
+            '../chat_exit', {
+              method: 'get'
+            }
+          );
+        }
+      </script>
+  </head>
+  <body onUnload="do_roomchat_unload();">
+   ugly hack to enable an onUnload event
+  </body>
+</html>