OSDN Git Service

fix symbol picture
[pettanr/pettanr.git] / app / assets / javascripts / locmare / filer / body / file_body.js.coffee
index 0e0218c..07f2041 100644 (file)
@@ -3,11 +3,14 @@ class Locmare.FilerModule.BodyModule.FileBody extends Backbone.View
   \r
   initialize: (options) ->\r
     @body = options.body\r
-    @items = @filer().items\r
+    @collection = @filer().list_result\r
+    _this = this\r
+    @collection.fetch().done ->\r
+      _this.render()\r
   \r
   render: () ->\r
     _this = this\r
-    _.each @items, (item) ->\r
+    _.each @collection.models, (item) ->\r
       c = _this.file_item_class()\r
       file_item = new c({'file_body': _this, 'item': item})\r
       _this.$el.append(file_item.render().el)\r