X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Flocmare%2Ffiler%2Fbody%2Ffile_body%2Ffile_item%2Fcaption%2Fdefault%2Fface%2Fmethod.js.coffee;h=55bf05e7617df565f00906cc2394e1d9ef21a014;hp=4aabfe2c84fd57f42c4b0e5b8f4af0a6fdc1dbbe;hb=d7c8065be895b67dc453b0e11ad0f259f1ca6706;hpb=f25bedea8e4e22d2ac9b65f3694fcc90a9dfa91c diff --git a/app/assets/javascripts/locmare/filer/body/file_body/file_item/caption/default/face/method.js.coffee b/app/assets/javascripts/locmare/filer/body/file_body/file_item/caption/default/face/method.js.coffee index 4aabfe2c..55bf05e7 100644 --- a/app/assets/javascripts/locmare/filer/body/file_body/file_item/caption/default/face/method.js.coffee +++ b/app/assets/javascripts/locmare/filer/body/file_body/file_item/caption/default/face/method.js.coffee @@ -9,7 +9,9 @@ class Locmare.FilerModule.BodyModule.FileBodyModule.FileItemModule.CaptionItemCo if @item[@method_name()] @item[@method_name()].call(@item, this, { success: (caption) => - @trigger('ready:caption', Pettanr.Views.Common.replace_empty(caption)) + @trigger('ready:caption', Pettanr.View.replace_empty(caption)) + fail: (response, opt) => + @trigger('ready:caption', I18n.t('yasapp.unresolved')) }) this