OSDN Git Service

color helper
[pettanr/pettanr.git] / app / assets / javascripts / controllers / artists.js.coffee
index 87164c6..c89eeb8 100644 (file)
@@ -1,18 +1,25 @@
 class Pettanr.ArtistsController extends Pettanr.AppController\r
   \r
   index: () ->\r
-    list_result = new Pettanr.Artist.Collection({})\r
-    new Pettanr.FilerRender('artist', list_result, 'default', window.operators)\r
+    @filer_list()\r
   \r
-  show_html_format: (format) -> \r
+  show_html: () -> \r
   \r
   show: () ->\r
+    @set_show()\r
+    switch @params['format']\r
+      when 'prof'\r
+        @show_prof()\r
+      when 'html'\r
+        @show_html()\r
   \r
   count: () ->\r
   \r
   new: () ->\r
+    @form_new()\r
   \r
   edit: () ->\r
+    @form_edit()\r
   \r
   create: () ->\r
   \r