OSDN Git Service

fix anything
[pettanr/pettanr.git] / app / assets / javascripts / panels.js.coffee
index b541b22..698bff6 100644 (file)
@@ -1,8 +1,31 @@
 $ ->\r
+  _.templateSettings = {\r
+    interpolate: /\<\&\=(.+?)\&\>/g,\r
+    evaluate: /\<\&(.+?)\&\>/g\r
+  }\r
+  #filer = new Filer('tt', ['ea','eb','ec'])\r
+  #view = new FilerView( { filer: filer } )\r
   confirm_confirm_confirm = () ->\r
     confirm(  )\r
   editor = window.PettanrEditor\r
-  configurations =  window.configurations\r
+  manifest =  {\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
   WritingFormat = window.PettanrWritingFormat\r
   WritingFormat.load($('#writing_formats'))\r
   SpeechBalloonTemplate = window.PettanrSpeechBalloonTemplate\r
@@ -611,6 +634,4 @@ $ ->
     $('.new-element').map ->\r
       $(@).click -> \r
         false\r
-    j = JSON.stringify(window.configurations)\r
-    $('#pettanr-configurations').val(j)\r
 \r