]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/instant_messenger.html
Initial version of modal login is now working.
[citadel.git] / webcit / static / instant_messenger.html
index 4af6387be3f05416d679cb9c37114fcc6f913964..549e6a29475ef37ece52c4accc2de23e0ad4c284 100644 (file)
@@ -3,6 +3,7 @@
        <title>Citadel Instant Messenger</title>
        <script type="text/javascript" src="prototype.js"></script>
        <script type="text/javascript" src="wclib.js"></script>
+       <script type="text/javascript" src="authmethods.js"></script>
 </head>
 <body onLoad='FetchNewMsgs();'>
 
@@ -16,8 +17,7 @@
 
 <script type="text/javascript">
 /*
- * $Id: instant_messanger.html 7193 2009-03-07 17:24:58Z dothebart $
- * Copyright 2000 - 2009 The Citadel Team
+ * Copyright 2000 - 2010 The Citadel Team
  * Licensed under the GPL V3
  *
  * Chat window for Person 2 Person Chat
@@ -55,8 +55,9 @@ function SendSomething(which_div, sendform, recipient) {
 
        // Send the text to the server
        parms = 'r=' + Math.random()
-               + '&g_cmd=SEXP ' + recipient + '|-\n' + escape(thetext);
-       new Ajax.Request('../ajax_servcmd',
+               + '&recp=' + recipient
+               + '&msg=' + encodeURIComponent(thetext);
+       new Ajax.Request('../ajax_send_instant_message',
                {
                        method: 'post',
                        parameters: parms