From: Darren Date: Mon, 26 Sep 2011 20:45:33 +0000 (+0100) Subject: Nick autocomplete fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=32c1b30bd32d9e63501d2fa62728d9d61e27575e;p=KiwiIRC.git Nick autocomplete fix --- diff --git a/js/front.ui.js b/js/front.ui.js index a3b932b..341a1b1 100644 --- a/js/front.ui.js +++ b/js/front.ui.js @@ -112,9 +112,9 @@ kiwi.front.ui = { if (_.isEqual(tabcomplete.data, [])) { // Get possible autocompletions data = []; - Tabview.getCurrentTab().userlist.listUsers(false).each(function () { + $.each(Tabview.getCurrentTab().userlist.listUsers(false), function () { var nick; - nick = User.stripPrefix($('a.nick', this).text()); + nick = User.stripPrefix(this.nick); data.push(nick); }); data = _.sortBy(data, function (nick) {