Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed VK Like widget initialisation for IE8

  • Loading branch information...
commit fc3c77150f1c9119f80e916f65edc69a1f59c051 1 parent f78a7c2
Slava Kotiya clexit authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  extensions/socialite.vkontakte.js
2  extensions/socialite.vkontakte.js
View
@@ -69,7 +69,7 @@
settings = Socialite.settings.vkontakte;
el.className = 'vk-like';
// Vkontakte needs explicit element id
- el.id = 'vkontakte-like-' + (new Date()).getTime();
+ el.id = 'vkontakte-like-' + (new Date()).getTime() + Math.random().toString().replace('.', '-');
Socialite.copyDataAttributes(instance.el, el);
like = extendConfWithAttributes(instance.el, ['type'], settings.like);
instance.el.appendChild(el);
Please sign in to comment.
Something went wrong with that request. Please try again.