OSDN Git Service

fix event names
[pettanr/pettanr.git] / app / assets / javascripts / models / panel.js.coffee
index c347941..834bf3f 100644 (file)
@@ -22,6 +22,11 @@ class Pettanr.Panel extends Peta.Root
   with_elements: () ->\r
     new Pettanr.Panel.WithElements({id: @get('id')})\r
   \r
+  overwrite: (options) ->\r
+    operators = options.operators\r
+    return false if not operators.author\r
+    @set('author_id', operators.author.id)\r
+  \r
   is_visible: (operators) ->\r
     switch super(operators)\r
       when null # super return\r