Update Odnoklassniki popup URL to prevent redirect.

master
Artem Sapegin 2015-01-13 18:09:14 +03:00
parent 5710ce8ee7
commit 4e1ef36ccb
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@
popupHeight: 330
},
odnoklassniki: {
counterUrl: protocol + '//www.ok.ru/dk/?st.cmd=extLike&ref={url}&uid={index}',
counterUrl: protocol + '//www.ok.ru/dk?st.cmd=extLike&ref={url}&uid={index}',
counter: function(jsonUrl, deferred) {
var options = services.odnoklassniki;
if (!options._) {
@ -110,7 +110,7 @@
$.getScript(makeUrl(jsonUrl, {index: index}))
.fail(deferred.reject);
},
popupUrl: 'http://www.ok.ru/dk/?st.cmd=addShare&st._surl={url}',
popupUrl: 'http://connect.ok.ru/dk?st.cmd=WidgetSharePreview&service=odnoklassniki&st.shareUrl={url}',
popupWidth: 550,
popupHeight: 360
},