From 32c1b30bd32d9e63501d2fa62728d9d61e27575e Mon Sep 17 00:00:00 2001 From: Darren Date: Mon, 26 Sep 2011 21:45:33 +0100 Subject: [PATCH] Nick autocomplete fix --- js/front.ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.25.1