OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
00d469f
)
t#31144:add writing_format
author
yasushiito
<yas@pen-chan.jp>
Wed, 7 Aug 2013 04:44:19 +0000
(13:44 +0900)
committer
yasushiito
<yas@pen-chan.jp>
Wed, 7 Aug 2013 04:44:19 +0000
(13:44 +0900)
app/assets/javascripts/panels.js.coffee
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/panels.js.coffee
b/app/assets/javascripts/panels.js.coffee
index
2e05cae
..
49ebed0
100644
(file)
--- a/
app/assets/javascripts/panels.js.coffee
+++ b/
app/assets/javascripts/panels.js.coffee
@@
-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
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
v = escapeHTML($(@).val())
\r
$(speech_trace).html(v)
\r
)
\r