\r
render: () ->\r
super()\r
+ this.$el.html('')\r
@item.get_parent(@binder_model.item_name(), this, {\r
success: (@binder) =>\r
@face_button = @binder.mini_face_button({\r
click: () =>\r
@trigger('http_get', @binder.show_url())\r
})\r
+ this.$el.append(@face_button.render().el)\r
@binder.get_parent('author', this, {\r
success: (@author) =>\r
@author_faced_label_button = @author.mini_faced_label_button({\r
click: () =>\r
@trigger('http_get', @author.show_url())\r
})\r
- this.$el.html('')\r
- this.$el.append(@face_button.render().el)\r
this.$el.append(@author_faced_label_button.render().el)\r
+ fail: (response, opt) =>\r
+ author_faced_label_error = new Pettanr.View.MiniFacedLabelButton.Error({\r
+ })\r
+ this.$el.append(author_faced_label_error.render().el)\r
})\r
+ fail: (response, opt) =>\r
+ this.$el.append(I18n.t('yasapp.unresolved'))\r
})\r
this\r
\r
\r
render: () ->\r
super()\r
+ this.$el.html('')\r
@item.get_parent(@destination_model.item_name(), this, {\r
success: (@destination) =>\r
@face_button = @destination.mini_face_button({\r
click: () =>\r
@trigger('http_get', @binder.show_url())\r
})\r
+ this.$el.append(@face_button.render().el)\r
@destination.get_parent('author', this, {\r
success: (@author) =>\r
@author_faced_label_button = @author.mini_faced_label_button({\r
click: () =>\r
@trigger('http_get', @author.show_url())\r
})\r
- this.$el.html('')\r
- this.$el.append(@face_button.render().el)\r
this.$el.append(@author_faced_label_button.render().el)\r
+ fail: (response, opt) =>\r
+ author_faced_label_error = new Pettanr.View.MiniFacedLabelButton.Error({\r
+ })\r
+ this.$el.append(author_faced_label_error.render().el)\r
})\r
+ fail: (response, opt) =>\r
+ this.$el.append(I18n.t('yasapp.unresolved'))\r
})\r
this\r
\r