From: Darren Date: Mon, 31 Dec 2012 08:28:17 +0000 (+0000) Subject: CSS classes added for nick modes #143 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9d5e7df8af6461308ba87bba2286753eab356246;p=KiwiIRC.git CSS classes added for nick modes #143 --- diff --git a/client/assets/dev/view.js b/client/assets/dev/view.js index 2bd1921..6a09edd 100644 --- a/client/assets/dev/view.js +++ b/client/assets/dev/view.js @@ -14,7 +14,8 @@ _kiwi.view.MemberList = Backbone.View.extend({ var $this = $(this.el); $this.empty(); this.model.forEach(function (member) { - $('
  • ' + member.get("prefix") + '' + member.get("nick") + '
  • ') + var prefix_css_class = (member.get('modes') || []).join(' '); + $('
  • ' + member.get("prefix") + '' + member.get("nick") + '
  • ') .appendTo($this) .data('member', member); });