OSDN Git Service

add: social button
[pettanr/pettanr.git] / app / assets / javascripts / view / layout.js.coffee
index bc761a9..e70cb44 100644 (file)
@@ -39,9 +39,6 @@ class Pettanr.View.Layout.Sns extends Pettanr.View.Layout.Base
     })\r
     this\r
   \r
-  error_dialog_close: () ->\r
-    @error_dialog.stop()\r
-  \r
   init_operators: (user) ->\r
     author = new Pettanr.Author(user.get('author')) if user.get('author')\r
     artist = new Pettanr.Artist(user.get('artist')) if user.get('artist')\r
@@ -126,6 +123,8 @@ class Pettanr.View.Layout.Sns extends Pettanr.View.Layout.Base
     @listenTo(view, 'http_get', @body_http_get)\r
     @listenTo(view, 'http_post', @body_http_post)\r
     @body.refresh(view)\r
+    if view.social\r
+      view.social.refresh()\r
   \r
   body_fail: (response, options) ->\r
     @error_dialog.start(response, options)\r