1
0
Fork 0

VK like button fix

This commit is contained in:
magnolia-fan 2011-11-29 02:38:23 +04:00
parent 5cc06f07c5
commit 549e27e0df
2 changed files with 1 additions and 4 deletions

View File

@ -13,8 +13,7 @@ class window.Vkontakte
window.vkAsyncInit = ->
VK.init apiId: _vkontakte.getApiId()
_vkontakte.auth()
VK.Widgets.Like("vk-like", {type: "mini", height: 20})
VK.Widgets.Like("vk-like", {type: "mini", height: 22, pageUrl: "http://beathaven.org/", text: "Like"})
setTimeout ->
$('#vk_api_transport').append($('<script async="async" type="text/javascript" src="http://vkontakte.ru/js/api/openapi.js">'))

View File

@ -1,4 +1,2 @@
.fb-like{ "data-href" => "http://facebook.com/BeatHavenHQ", "data-send" => "false", "data-layout" => "button_count", "data-width" => "100", "data-show-faces" => "false", "data-font" => "lucida grande" }
#vk-like
%script{ type: "text/javascript" }
= "VK.Widgets.Like(\"vk_like\", {type: \"button\", height: 20, pageUrl: \"http://beathaven.org/\", text: \"#{t('global.like')}\"})"