X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Flicense.js.coffee;h=d01e3b4b243a9db778167d7b0709ded09d15ff89;hb=0a155175c4fc4f412946e854089ec97d8b1766ae;hp=466b84109a83baf4984c3b1c756d23bce20bc877;hpb=c4fc0258365dccdd39e18629bb5d8e5873c658fc;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/models/license.js.coffee b/app/assets/javascripts/models/license.js.coffee index 466b8410..d01e3b4b 100644 --- a/app/assets/javascripts/models/license.js.coffee +++ b/app/assets/javascripts/models/license.js.coffee @@ -20,14 +20,13 @@ class Pettanr.License extends Peta.SystemResource symbol_option: () -> i = @system_picture() i.fetch({cache: true}).done => - @symbol_picture = i.tmb_opt_img_tag() - @trigger('ready:symbol') + @trigger('ready:symbol', i.tmb_opt_img_tag()) caption_with_group: () -> i = @license_group() i.fetch({cache: true}).done => - @caption_text = i.get('caption') + '/' + @get('caption') - @trigger('ready:caption') + caption = i.escape('caption') + '/' + @escape('caption') + @trigger('ready:caption', caption) initialize: () -> if @id