Removed the 'room=' parameter from the wiki view. This functionality is provided...
[citadel.git] / webcit / static / instant_messenger.html
index 549e6a29475ef37ece52c4accc2de23e0ad4c284..59f9981d4a42ec90d0c0d9015c3c6bb1463ff238 100644 (file)
@@ -48,14 +48,14 @@ function SendSomething(which_div, sendform, recipient) {
                                + '</font>'
                                + ':</b> '
                                + thetext
-                               + '<br />\n';
+                               + '<br>\n';
 
        // Scroll to the bottom of the tab
        $('main').scrollTop = 999999;
 
        // Send the text to the server
        parms = 'r=' + Math.random()
-               + '&recp=' + recipient
+               + '&recp=' + encodeURIComponent(recipient)
                + '&msg=' + encodeURIComponent(thetext);
        new Ajax.Request('../ajax_send_instant_message',
                {
@@ -123,15 +123,15 @@ function ShowNewMsg(gexp_xmlresponse) {
                          $('main').innerHTML
                        + '<div id=\"tab_' + which_div + '\" style=\"display:none;cursor:pointer\">'
                        + '<div id=\"' + which_div + '\">'
-                       + '<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />'
-                       + '<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />'
+                       + '<br><br><br><br><br><br><br><br><br><br>'
+                       + '<br><br><br><br><br><br><br><br><br><br>'
                        + '</div>'
                        + '<div align=\"center\" id=\"response_'
                        + which_div + '\" style=\"background:#ddddee\">'
                        + '<br><form method=\"post\" action=\"null\" name=\"sendform_' + which_div + '\" '
                        + 'onSubmit=\"return SendSomething(\'' + which_div + '\', \'sendform_'
                        + which_div + '\', \'' + sender + '\');\">'
-                       + '<img src=\"citadelchat_16x.gif\">&nbsp;'
+                       + '<img src=\"webcit_icons/essen/16x16/chat.png\">&nbsp;'
                        + '<input type=\"text\" size=\"72\" maxlength=\"600\" name=\"sendthis\">'
                        + '</form>'
                        + '<br></div>'
@@ -157,7 +157,7 @@ function ShowNewMsg(gexp_xmlresponse) {
                                + '</font>'
                                + ':</b> '
                                + the_message
-                               + '<br />\n';
+                               + '<br>\n';
 
        // Scroll to the bottom of the tab
        $('main').scrollTop = 999999;
@@ -171,7 +171,7 @@ function ShowNewMsg(gexp_xmlresponse) {
 
 // This is called periodically to check for new incoming messages
 function FetchNewMsgs() {
-       parms = 'g_cmd=GEXP&r=' + Math.random();
+       parms = encodeURI('g_cmd=GEXP&r=' + Math.random());
        new Ajax.Request('../ajax_servcmd',
                {
                        method: 'get',
@@ -182,7 +182,7 @@ function FetchNewMsgs() {
 }
 
 // Perform some initialization.
-parms = 'g_cmd=GREG _SELF_&r=' + Math.random();
+parms = encodeURI('g_cmd=GREG _SELF_&r=' + Math.random());
 new Ajax.Request('../ajax_servcmd',
        {
                method: 'get',