From ad03879a342ac4b5a75c5711d03bcb5a96f655a7 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Fri, 6 Jun 2014 22:05:47 +0200 Subject: [PATCH] Updated slate-irc and tabcomplete --- client/css/style.css | 7 +- client/js/chat.js | 4 +- client/js/jquery.plugins.js | 149 +++++++++++++++++++++++++----------- lib/server.js | 9 +-- 4 files changed, 113 insertions(+), 56 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index 1369944d..a16b2e79 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -224,9 +224,10 @@ button { color: #33b0f7; } #chat .show-more:disabled { - color: #bec5d0; + display: none; + /*color: #bec5d0; opacity: .4; - text-decoration: line-through; + text-decoration: line-through;*/ } #chat .messages { display: table; @@ -336,7 +337,7 @@ button { height: 35px; left: 0; position: absolute; - right: 180px; + right: 160px; } #chat .form .hint { color: #bbb; diff --git a/client/js/chat.js b/client/js/chat.js index 57baa058..89e52606 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -64,7 +64,7 @@ $(function() { .sticky() .end() .find(".input") - .tabComplete(commands, {hint: false}); + .tabcomplete(commands, {hint: false}); $("#network-" + data.id) .append(render("channels", {channels: [data.chan]})) @@ -95,7 +95,7 @@ $(function() { var channels = $.map(data.networks, function(n) { return n.channels; }); chat.html(render("windows", {windows: channels})) .find(".input") - .tabComplete(commands, {hint: false}) + .tabcomplete(commands, {hint: false}) .end() .find(".hidden") .prev(".show-more") diff --git a/client/js/jquery.plugins.js b/client/js/jquery.plugins.js index 613e4eef..7db9e0e2 100644 --- a/client/js/jquery.plugins.js +++ b/client/js/jquery.plugins.js @@ -94,28 +94,30 @@ })(jQuery); /*! - * tabComplete - * Lightweight tab completion for and