VK like button fix
This commit is contained in:
parent
5cc06f07c5
commit
549e27e0df
|
@ -13,8 +13,7 @@ class window.Vkontakte
|
||||||
window.vkAsyncInit = ->
|
window.vkAsyncInit = ->
|
||||||
VK.init apiId: _vkontakte.getApiId()
|
VK.init apiId: _vkontakte.getApiId()
|
||||||
_vkontakte.auth()
|
_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 ->
|
setTimeout ->
|
||||||
$('#vk_api_transport').append($('<script async="async" type="text/javascript" src="http://vkontakte.ru/js/api/openapi.js">'))
|
$('#vk_api_transport').append($('<script async="async" type="text/javascript" src="http://vkontakte.ru/js/api/openapi.js">'))
|
||||||
|
|
|
@ -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" }
|
.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
|
#vk-like
|
||||||
%script{ type: "text/javascript" }
|
|
||||||
= "VK.Widgets.Like(\"vk_like\", {type: \"button\", height: 20, pageUrl: \"http://beathaven.org/\", text: \"#{t('global.like')}\"})"
|
|
||||||
|
|
Loading…
Reference in New Issue