summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webchat/public/client.js13
-rw-r--r--webchat/public/functions.js11
2 files changed, 0 insertions, 24 deletions
diff --git a/webchat/public/client.js b/webchat/public/client.js
index 8865fcc0..a90cf8d6 100644
--- a/webchat/public/client.js
+++ b/webchat/public/client.js
@@ -6,21 +6,8 @@ $(function updateTime () {
return true;
});
-var gensym = (function () {
- var i = 0
- return function () {
- return ++i;
- }
-})()
-
settings.waiting_callbacks = {}
-function request (settings, method, params, callback) {
- var id = gensym()
- settings.waiting_callbacks[id] = callback
- settings.sock.send({method: method, params: params, id: id});
-}
-
$(function connect() {
settings.sock = new SockJS('/echo');
var transport = make_sockjs_client_transport(settings.sock)
diff --git a/webchat/public/functions.js b/webchat/public/functions.js
index 244af67b..781fafce 100644
--- a/webchat/public/functions.js
+++ b/webchat/public/functions.js
@@ -7,22 +7,11 @@ function inputParser (str) {
}
}
-
-
function replaceURLWithHTMLLinks (text) {
var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
return text.replace(exp,"<a class=chat_link href='$1'>$1</a>");
}
-function setMaybeNick (input) {
- if (match) {
- nick = match[1];
- $('#nick').html(nick);
- }
-}
-function sortNicklist () {
-};
-
function getNicklistElement(name, type) {
var el;
$('.'+type+'_name').each(function (i,e) {