OSDN Git Service

t#31144:add writing_format
authoryasushiito <yas@pen-chan.jp>
Wed, 7 Aug 2013 04:44:19 +0000 (13:44 +0900)
committeryasushiito <yas@pen-chan.jp>
Wed, 7 Aug 2013 04:44:19 +0000 (13:44 +0900)
app/assets/javascripts/panels.js.coffee

index 2e05cae..49ebed0 100644 (file)
@@ -322,7 +322,10 @@ $ ->
             wf_sel = $(trace + 'writing_format_id')\r
             wf_id = parseInt(wf_sel.val())\r
             speech_trace = '#panel' + $(@).attr('panel_id') + 'speech_balloon' + $(@).attr('element_id') + 'speech' + $(@).attr('element_part_id')\r
-            confirm( writing_formats[wf_id].toString() + '_render')\r
+            fn = writing_formats[wf_id].toString() + '_render()'\r
+            confirm(fn )\r
+#            f = new Function("return " + fn)\r
+#            f()\r
             v = escapeHTML($(@).val())\r
             $(speech_trace).html(v)\r
           )\r