Nick autocomplete fix
authorDarren <darren@darrenwhitlen.com>
Mon, 26 Sep 2011 20:45:33 +0000 (21:45 +0100)
committerDarren <darren@darrenwhitlen.com>
Mon, 26 Sep 2011 20:45:33 +0000 (21:45 +0100)
js/front.ui.js

index a3b932b9ff1c795060d9ea380bcc687c635d6648..341a1b16545075c96bdee450b4e7c0b8ec7e6efd 100644 (file)
@@ -112,9 +112,9 @@ kiwi.front.ui = {
                 if (_.isEqual(tabcomplete.data, [])) {\r
                     // Get possible autocompletions\r
                     data = [];\r
-                    Tabview.getCurrentTab().userlist.listUsers(false).each(function () {\r
+                    $.each(Tabview.getCurrentTab().userlist.listUsers(false), function () {\r
                         var nick;\r
-                        nick = User.stripPrefix($('a.nick', this).text());\r
+                        nick = User.stripPrefix(this.nick);\r
                         data.push(nick);\r
                     });\r
                     data = _.sortBy(data, function (nick) {\r