OSDN Git Service

fix: show's destroy button
[pettanr/pettanr.git] / app / assets / javascripts / models / picture.js.coffee
index 46e3598..2795754 100644 (file)
@@ -1,5 +1,4 @@
 class Pettanr.Picture extends Peta.Content\r
-  url: '/pictures/'\r
   \r
   @singular: () ->\r
     'Picture'\r
@@ -78,6 +77,9 @@ class Pettanr.Picture extends Peta.Content
     return true if @is_own(operators)\r
     #@is_enable() and @is_head()\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
@@ -96,6 +98,4 @@ class Pettanr.Picture extends Peta.Content
   \r
   initialize: (attr = {}, options = {}) ->\r
     super(attr, options)\r
-    if @id\r
-      @url = @url + @id\r
   \r