1 class Pettanr.View.Summary.Leaf extends Pettanr.View.Summary
\r
3 initialize: (options) ->
\r
5 @binder = new Pettanr.View.Summary.Leaf.Binder(@item, @context)
\r
6 @destination = new Pettanr.View.Summary.Leaf.Destination(@item, @context)
\r
11 this.$el.append(@binder.render().el)
\r
12 this.$el.append(@destination.render().el)
\r
16 @trigger('http_get', url)
\r
18 class Pettanr.View.Summary.Leaf.Binder extends Pettanr.View
\r
21 constructor: (@item, @context, options) ->
\r
22 @binder_model = @item.my_class().binder_model()
\r
25 initialize: (options) ->
\r
30 @item.get_parent(@binder_model.item_name(), this, {
\r
31 success: (@binder) =>
\r
32 @face_button = @binder.mini_face_button({
\r
35 @trigger('http_get', @binder.show_url())
\r
37 @binder.get_parent('author', this, {
\r
38 success: (@author) =>
\r
39 @author_faced_label_button = @author.mini_faced_label_button({
\r
44 @trigger('http_get', @author.show_url())
\r
47 this.$el.append(@face_button.render().el)
\r
48 this.$el.append(@author_faced_label_button.render().el)
\r
53 class Pettanr.View.Summary.Leaf.Destination extends Pettanr.View
\r
56 constructor: (@item, @context, options) ->
\r
57 @destination_model = @item.my_class().destination_model()
\r
60 initialize: (options) ->
\r
65 @item.get_parent(@destination_model.item_name(), this, {
\r
66 success: (@destination) =>
\r
67 @face_button = @destination.mini_face_button({
\r
70 @trigger('http_get', @binder.show_url())
\r
72 @destination.get_parent('author', this, {
\r
73 success: (@author) =>
\r
74 @author_faced_label_button = @author.mini_faced_label_button({
\r
79 @trigger('http_get', @author.show_url())
\r
82 this.$el.append(@face_button.render().el)
\r
83 this.$el.append(@author_faced_label_button.render().el)
\r