OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / assets / javascripts / models / writing_format.js.coffee
index 9921758..b6e60f0 100644 (file)
@@ -1,5 +1,4 @@
 class Pettanr.WritingFormat extends Peta.Template\r
-  url: '/writing_formats/'\r
   \r
   @singular: () ->\r
     'WritingFormat'\r
@@ -11,19 +10,11 @@ class Pettanr.WritingFormat extends Peta.Template
     id: null\r
   } \r
   \r
-  system_picture: () ->\r
-    new Pettanr.Cache.Retriever(Pettanr.SystemPicture, @get('system_picture_id'))\r
-  \r
-  symbol_option: () ->\r
-    retriever = @system_picture()\r
-    @listenTo(retriever, 'retrieve', @retrieve_system_picture)\r
-    retriever.retrieve()\r
-  \r
-  retrieve_system_picture: (item) -> \r
-    @trigger('ready:symbol', item.tmb_opt_img_tag())\r
+  @trace_routes: () ->\r
+    {\r
+      symbol: ['system_picture']\r
+    }\r
   \r
   initialize: (attr = {}, options = {}) ->\r
     super(attr, options)\r
-    if @id\r
-      @url = @url + @id\r
   \r