OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / assets / javascripts / locmare / filer / body / file_body / file_item / caption / default / face / base.js.coffee
index 14d2c2b..d1bd84f 100644 (file)
@@ -1,15 +1,23 @@
-class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.CaptionItemColumnModule.DefaultModule.FaceModule.BaseFace extends Backbone.View\r
-  tagName: 'div'\r
-  className: 'face'\r
+class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.CaptionItemColumnModule.DefaultModule.FaceModule.BaseFace extends Pettanr.View\r
   \r
   initialize: (options) ->\r
     @default_caption = options.default_caption\r
     @my_manifest = options.my_manifest\r
     @item = options.item\r
   \r
+  # not render\r
+  # get caption data and send message\r
   render: () ->\r
     this\r
   \r
+  replace_empty: () ->\r
+    if Pettanr.is_blank(@caption())\r
+      empty = new Pettanr.View.EmptyDiv()\r
+      this.$el.html(empty.render().el)\r
+    else\r
+      this.$el.html(@caption())\r
+    this\r
+  \r
   filer: () ->\r
     @default_caption.filer()\r
   \r