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_mini_faced_label = @author.mini_faced_label({
\r
42 @trigger('http_get', @author.show_url())
\r
45 this.$el.append(@face_button.render().el)
\r
46 this.$el.append(@author_mini_faced_label.render().el)
\r
51 class Pettanr.View.Summary.Leaf.Destination extends Pettanr.View
\r
54 constructor: (@item, @context, options) ->
\r
55 @destination_model = @item.my_class().destination_model()
\r
58 initialize: (options) ->
\r
63 @item.get_parent(@destination_model.item_name(), this, {
\r
64 success: (@destination) =>
\r
65 @face_button = @destination.mini_face_button({
\r
68 @trigger('http_get', @binder.show_url())
\r
70 @destination.get_parent('author', this, {
\r
71 success: (@author) =>
\r
72 @author_mini_faced_label = @author.mini_faced_label({
\r
75 @trigger('http_get', @author.show_url())
\r
78 this.$el.append(@face_button.render().el)
\r
79 this.$el.append(@author_mini_faced_label.render().el)
\r