share button with popup

This commit is contained in:
Harry Bomrah 2014-02-21 17:16:36 +08:00
parent 0587c118d1
commit c0473a3f13
1 changed files with 6 additions and 1 deletions

View File

@ -45,6 +45,11 @@
<script type="text/javascript">
(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>