OSDN Git Service

add js
[pettanr/pettanr.git] / app / assets / javascripts / local_manifest / list_group.js.coffee
1 class LocalManifest.ListGroup extends ManifestBase.Base\r
2   \r
3   set_default: () ->\r
4     super()\r
5     @json\r
6     @json.actions ||= {}\r
7     @json.item_name = Manifest.singularize(@name)\r
8     \r
9   init: () ->\r
10     super()\r
11     @item_name = @json.item_name\r
12     @actions = ManifestBase.load_type_name_args this, @json, 'actions', Manifest.ListGroupModule.ActionFactory\r
13   \r
14   constructor: (manifest, name, json, module_name) ->\r
15     super(manifest, name, json, module_name)\r
16     \r
17 class LocalManifest.ListGroupModule\r