X-Git-Url: http://git.scottworley.com/reliable-chat/blobdiff_plain/219b6a2b2ef21772217935e79398305a086000d7..2ee4581bb573fb3a3df74f9359a59d51ac41c483:/webclient/rc.html?ds=inline diff --git a/webclient/rc.html b/webclient/rc.html index 2e05a86..da5874a 100644 --- a/webclient/rc.html +++ b/webclient/rc.html @@ -258,6 +258,8 @@ type = "status"; } else if (/^\* /.test(message.Text)) { type = "me"; + } else if (/^-!- /.test(message.Text)) { + type = "local"; } else { type = "text"; } @@ -434,10 +436,9 @@ "?id=" + encodeURIComponent(message.ID) + "&text=" + encodeURIComponent(message.Text); for (var i in servers) { - var uri = rcserverbase(servers[i]) + path; - var img = document.createElement("img"); - img.setAttribute("src", uri); - d.appendChild(img); + var xhr = new XMLHttpRequest(); + xhr.open("POST", rcserverbase(servers[i]) + path); + xhr.send(); } } @@ -472,7 +473,9 @@ function rckeydown(event) { if (event.keyCode == 13) { - rcinput(document.input.say.value); + if (document.input.say.value) { + rcinput(document.input.say.value); + } document.input.say.value = ""; return false; }