share button with popup
This commit is contained in:
parent
0587c118d1
commit
c0473a3f13
|
@ -45,6 +45,11 @@
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
(function(){
|
(function(){
|
||||||
$(".fb-share-button").attr("href","https://www.facebook.com/sharer/sharer.php?u=" + window.location.href);
|
$(".fb-share-button").click(function(){
|
||||||
|
var url = "https://www.facebook.com/sharer/sharer.php?u=" + window.location.href;
|
||||||
|
newwindow = window.open(url,'name','height=500,width=1024');
|
||||||
|
if (window.focus) {newwindow.focus()}
|
||||||
|
return false;
|
||||||
|
})
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue