OSDN Git Service

fix sign in,out
[pettanr/pettanr.git] / app / assets / javascripts / models / license_group.js.coffee
index b097b38..75980bf 100644 (file)
@@ -1,15 +1,17 @@
 class Pettanr.LicenseGroup extends Peta.Template\r
-  @single: () ->\r
+  url: '/license_groups/'\r
+  \r
+  @singular: () ->\r
     'LicenseGroup'\r
   \r
   @plural: () ->\r
     'LicenseGroups'\r
   \r
   defaults: {\r
-    id: 11\r
+    id: null\r
   } \r
   \r
   initialize: () ->\r
-    confirm("Welcome to Panel")\r
+    if @id\r
+      @url = @url + @id\r
   \r
-\r