diff options
Diffstat (limited to 'web/scripts3.js')
-rw-r--r-- | web/scripts3.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/web/scripts3.js b/web/scripts3.js index 7651ab38..e0a39fa4 100644 --- a/web/scripts3.js +++ b/web/scripts3.js @@ -174,10 +174,10 @@ function showMessageLinksDialog(mid,rid) { html+="Номер сообщения:"; html+="<div onclick=\"$(this).selectText()\" class=\"dialogl\">"+mlink+"</div>"; html+="Поделиться:<ul>"; - html+="<li><a href=\"#\" onclick=\"return openSocialWindow('https://www.facebook.com/sharer/sharer.php?u="+hlinkenc+"')\"></a></li>"; - html+="<li><a href=\"#\" onclick=\"return openSocialWindow('https://twitter.com/intent/tweet?url="+hlinkenc+"')\" style=\"background-position: -32px 0;\"></a></li>"; - html+="<li><a href=\"#\" onclick=\"return openSocialWindow('https://vk.com/share.php?url="+hlinkenc+"')\" style=\"background-position: -64px 0;\"></a></li>"; - html+="<li><a href=\"#\" onclick=\"return openSocialWindow('https://plus.google.com/share?url="+hlinkenc+"')\" style=\"background-position: -96px 0;\"></a></li>"; + html+="<li><a href=\"https://www.facebook.com/sharer/sharer.php?u="+hlinkenc+"\" onclick=\"return openSocialWindow(this)\"></a></li>"; + html+="<li><a href=\"https://twitter.com/intent/tweet?url="+hlinkenc+"\" onclick=\"return openSocialWindow(this)\" style=\"background-position: -32px 0;\"></a></li>"; + html+="<li><a href=\"https://vk.com/share.php?url="+hlinkenc+"\" onclick=\"return openSocialWindow(this)\" style=\"background-position: -64px 0;\"></a></li>"; + html+="<li><a href=\"https://plus.google.com/share?url="+hlinkenc+"\" onclick=\"return openSocialWindow(this)\" style=\"background-position: -96px 0;\"></a></li>"; html+="</ul></div>"; openDialog(html); @@ -211,9 +211,10 @@ function closeDialog() { $('#dialogt').remove(); } -function openSocialWindow(url) { - var w=window.open(url,'juickshare','width=640,height=400'); +function openSocialWindow(a) { + var w=window.open(a.href,'juickshare','width=640,height=400'); if(window.focus) w.focus(); + return false; } function checkUsername() { |