From 09e63f0467bf054d5fce14a8d8546d235eb4c0f4 Mon Sep 17 00:00:00 2001 From: magnolia-fan Date: Tue, 29 Nov 2011 04:20:14 +0400 Subject: [PATCH] Facebook like button inside iframe --- app/assets/javascripts/application.js | 2 -- app/assets/javascripts/social/facebook.js | 19 ------------------- app/assets/javascripts/vkontakte.coffee | 2 +- app/views/application/_like.html.haml | 2 +- 4 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 app/assets/javascripts/social/facebook.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 14debd9..f8a823d 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -14,5 +14,3 @@ //= require settings //= require beathaven - -//= require_tree ./social diff --git a/app/assets/javascripts/social/facebook.js b/app/assets/javascripts/social/facebook.js deleted file mode 100644 index ec471ec..0000000 --- a/app/assets/javascripts/social/facebook.js +++ /dev/null @@ -1,19 +0,0 @@ -$(function(){ - // window.fbAsyncInit = function() { - // FB.init({ - // appId : 'YOUR_APP_ID', // App ID - // channelURL : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File - // status : true, // check login status - // cookie : true, // enable cookies to allow the server to access the session - // oauth : true, // enable OAuth 2.0 - // xfbml : true // parse XFBML - // }); - // }; - (function(d, s, id) { - var js, fjs = d.getElementsByTagName(s)[0]; - if (d.getElementById(id)) {return;} - js = d.createElement(s); js.id = id; - js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; - fjs.parentNode.insertBefore(js, fjs); - }(document, 'script', 'facebook-jssdk')); -}); diff --git a/app/assets/javascripts/vkontakte.coffee b/app/assets/javascripts/vkontakte.coffee index ddeda53..d2d4168 100644 --- a/app/assets/javascripts/vkontakte.coffee +++ b/app/assets/javascripts/vkontakte.coffee @@ -13,7 +13,7 @@ class window.Vkontakte window.vkAsyncInit = -> VK.init apiId: _vkontakte.getApiId() _vkontakte.auth() - VK.Widgets.Like("vk-like", {type: "mini", height: 22, pageUrl: "http://beathaven.org/", text: "Like"}) + VK.Widgets.Like("vk-like", {type: "mini", height: 20, pageUrl: "http://beathaven.org/", text: "Like"}) setTimeout -> $('#vk_api_transport').append($('