OSDN Git Service

fix: any
[pettanr/pettanr.git] / app / assets / javascripts / system.js.coffee
index 7615679..bcccf83 100644 (file)
@@ -1,3 +1,20 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
+$ ->\r
+  manifest =  {\r
+    inflectors: window.inflectors,\r
+    items: window.items,\r
+    controllers: window.controllers,\r
+    models: window.models,\r
+    system_resources: window.system_resources,\r
+    magic_numbers: window.magic_numbers,\r
+  }\r
+  local_manifest =  {\r
+    list_groups: window.list_groups,\r
+    profilers: window.profilers,\r
+    filers: window.filers,\r
+    forms: window.forms,\r
+    buckets: window.buckets,\r
+  }\r
+  j = JSON.stringify(manifest, undefined, 2)\r
+  $('#pettanr-manifest').val(j)\r
+  j = JSON.stringify(local_manifest, undefined, 2)\r
+  $('#pettanr-local_manifest').val(j)\r