From 8ab1c39ddb798d7f189f18df945e8bb58ee3f81a Mon Sep 17 00:00:00 2001 From: yasushiito Date: Wed, 7 Aug 2013 13:44:19 +0900 Subject: [PATCH 1/1] t#31144:add writing_format --- app/assets/javascripts/panels.js.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/panels.js.coffee b/app/assets/javascripts/panels.js.coffee index 2e05cae6..49ebed0b 100644 --- a/app/assets/javascripts/panels.js.coffee +++ b/app/assets/javascripts/panels.js.coffee @@ -322,7 +322,10 @@ $ -> wf_sel = $(trace + 'writing_format_id') wf_id = parseInt(wf_sel.val()) speech_trace = '#panel' + $(@).attr('panel_id') + 'speech_balloon' + $(@).attr('element_id') + 'speech' + $(@).attr('element_part_id') - confirm( writing_formats[wf_id].toString() + '_render') + fn = writing_formats[wf_id].toString() + '_render()' + confirm(fn ) +# f = new Function("return " + fn) +# f() v = escapeHTML($(@).val()) $(speech_trace).html(v) ) -- 2.11.0