Userbox fix #274
authorDarren <darren@darrenwhitlen.com>
Mon, 27 May 2013 13:04:59 +0000 (14:04 +0100)
committerDarren <darren@darrenwhitlen.com>
Mon, 27 May 2013 13:04:59 +0000 (14:04 +0100)
client/assets/src/views/member.js
client/assets/src/views/memberlist.js

index 0b42a096035b7e929ad39886b0945d953b0efdcd..c9bc8c2028d5e4aec0b779ad4e320ea854dbbdc9 100644 (file)
@@ -10,7 +10,7 @@ _kiwi.view.Member = Backbone.View.extend({
 
         $this.addClass('mode ' + prefix_css_class);
         $this.html('<a class="nick"><span class="prefix">' + this.model.get("prefix") + '</span>' + this.model.get("nick") + '</a>');
-        $this.data('member', this.model);
+
         return this;
     }
 });
\ No newline at end of file
index e3242ee01e04b4178f9750a3325fdabc823227c3..49f16ae77b2ef0226f7ad0ed1bdafad6ab26fb4e 100644 (file)
@@ -11,7 +11,8 @@ _kiwi.view.MemberList = Backbone.View.extend({
         var $this = this.$el;
         $this.empty();
         this.model.forEach(function (member) {
-            $this.append(member.view.el);
+            member.view.$el.data('member', member);
+            $this.append(member.view.$el);
         });
         return this;
     },