OSDN Git Service

fix: view
[pettanr/pettanr.git] / app / assets / javascripts / view / summary / leaf.js.coffee
index c5488ad..f578b07 100644 (file)
@@ -36,14 +36,16 @@ class Pettanr.View.Summary.Leaf.Binder extends Pettanr.View
         })\r
         @binder.get_parent('author', this, {\r
           success: (@author) =>\r
-            @author_mini_faced_label = @author.mini_faced_label({\r
+            @author_faced_label_button = @author.mini_faced_label_button({\r
+                shorten: true\r
+              }, {\r
               context: @context,\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_mini_faced_label.render().el)\r
+            this.$el.append(@author_faced_label_button.render().el)\r
         })\r
     })\r
     this\r
@@ -69,14 +71,16 @@ class Pettanr.View.Summary.Leaf.Destination extends Pettanr.View
         })\r
         @destination.get_parent('author', this, {\r
           success: (@author) =>\r
-            @author_mini_faced_label = @author.mini_faced_label({\r
+            @author_faced_label_button = @author.mini_faced_label_button({\r
+                shorten: true\r
+              }, {\r
               context: @context,\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_mini_faced_label.render().el)\r
+            this.$el.append(@author_faced_label_button.render().el)\r
         })\r
     })\r
     this\r