aboutsummaryrefslogtreecommitdiff
path: root/web/scripts3.js
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-07-01 17:33:00 +0700
committerGravatar Ugnich Anton2014-07-01 17:33:00 +0700
commit6ceb03cce40e5183b2bb5e93c0cb4b5d39992e94 (patch)
tree80721ee8741525a25505316ce87c79b8567f36b3 /web/scripts3.js
parent0439784c9e32e2bfe6ccb7ea7569fa8a503c1152 (diff)
Share new post
Diffstat (limited to 'web/scripts3.js')
-rw-r--r--web/scripts3.js13
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() {