var $this = $(this.el);\r
$this.empty();\r
this.model.forEach(function (member) {\r
- $('<li><a class="nick"><span class="prefix">' + member.get("prefix") + '</span>' + member.get("nick") + '</a></li>')\r
+ var prefix_css_class = (member.get('modes') || []).join(' ');\r
+ $('<li class="mode ' + prefix_css_class + '"><a class="nick"><span class="prefix">' + member.get("prefix") + '</span>' + member.get("nick") + '</a></li>')\r
.appendTo($this)\r
.data('member', member);\r
});\r