OSDN Git Service

fix: view system2
[pettanr/pettanr.git] / app / assets / javascripts / models / picture.js.coffee
index 0cc5a67..b1d85c3 100644 (file)
@@ -41,7 +41,7 @@ class Pettanr.Picture extends Peta.Content
     }\r
   \r
   opt_img_tag: () ->\r
     }\r
   \r
   opt_img_tag: () ->\r
-    {src: @r_url(), width: @get('width'), height: @get('height')}\r
+    @picture_file()\r
   \r
   tmb_opt_img_tag: () ->\r
     @symbol_file()\r
   \r
   tmb_opt_img_tag: () ->\r
     @symbol_file()\r
@@ -93,25 +93,6 @@ class Pettanr.Picture extends Peta.Content
   history_view: () ->\r
     new Pettanr.Views.Picture.History({item: this})\r
   \r
   history_view: () ->\r
     new Pettanr.Views.Picture.History({item: this})\r
   \r
-  credit_icon_view: () ->\r
-    new Pettanr.Views.Picture.CreditIcon({item: this})\r
-  \r
-  credit_view: (with_icon = true) ->\r
-    new Pettanr.Views.Picture.Credit({item: this, with_icon: with_icon})\r
-  \r
-  picture_file: (subdir = null) ->\r
-    new Pettanr.PictureFile(this, subdir)\r
-  \r
-  fetch: (options) ->\r
-    if @id\r
-      @credit_icon = @credit_icon_view()\r
-      @credit = null\r
-      f = (data, status) =>\r
-        @credit = data\r
-        @trigger('ready')\r
-      $.get(@url + '/credit', null, f, 'html')\r
-    super(options)\r
-  \r
   initialize: (attr = {}, options = {}) ->\r
     super(attr, options)\r
   \r
   initialize: (attr = {}, options = {}) ->\r
     super(attr, options)\r
   \r